I want to add select2 extension in one column of GridView
. how can I do this?
In addition I just want to use select2 Yii extension and not use its pure library.
相关问题
- Yii - Eliminate default controller ID for a module
- how to change csrf field id from YII_CSRF_TOKEN to
- Getting total values of a certain column from Grid
- Load balancing with Yii sessions
- Yii uploading pictures
相关文章
- Can you run console jobs from yii2-basic?
- How to do a bulk database insert in Yii2?
- Yii2 - check if the user is logged in view
- Render html in yii2 Gridview Widget
- Call static method from a string name in PHP
- radioButtonList checked by default
- GridView is scrolling back to top after row select
- Postgres error: null value in column “id” - during
I have created a class extending the CDataColumn to add a filter to the column:
And then you add this column to your cgridview:
Use the following way to show the select2 for your Gridview column, hope it helps.
See examples of this Yii Gridview
In view e.g: admin.php
In Post.php model
See more Yii tutorials at http://www.codexamples.com/