Hi everyone! I’m using bootstrap and Bootstrap Editable extension in my GridView to edit data fast. It’s awesome, but when I somehow refresh my gridview with AJAX (e.g. apply some fiter or delete a row) it dissapears from the page and if I want to edit-in-place again I have to refresh page manually (F5). This is how I apply editable plugin in my views/admin.php file.
Yii::app()->clientScript->registerScriptFile(
Yii::app()->assetManager->publish(
Yii::getPathOfAlias('ext.editable.assets.js').'/bootstrap-editable.min.js'
),
CClientScript::POS_HEAD
);
Yii::app()->clientScript->registerCssFile(
Yii::app()->assetManager->publish(
Yii::getPathOfAlias('ext.editable.assets.css').'/bootstrap-editable.css'
),
CClientScript::POS_HEAD
);
Yii::app()->clientScript->registerScript('editable', '$(\'.editable\').editable();', CClientScript::POS_END);
Yii::app()->clientScript->registerCss('popover', '.popover{width: 600px !important;} .editable-popover{width: auto !important;}', CClientScript::POS_HEAD);
Appreciate any help.