ppopara
(Maectpocmpt)
January 25, 2011, 1:02am
1
Hi to All,
question is:
how can I add field with caption like ‘Add new contry District’ at the end of dropDownList of CGridView, which will be used for a redirecting to view/create page?
in my view/admin, I use dropDownList inside CGridView for filtering, dropdown is populated with the list of IDs that came from the database, in id=>value form. e.g.
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'municipalitie-grid',
'dataProvider' => $model->search(),
'filter' => $model,
'columns' => array(
'municipalitie_name',
array(
'name' => 'region_name',
'value' => '$data->countryDistrict->countryRegion->region_name',
'filter' => CountryRegion::model()->getRegionNames('region_name', 'region_name'),
),...
ppopara
(Maectpocmpt)
January 30, 2011, 6:23pm
3
ppopara:
Hi to All,
question is:
how can I add field with caption like ‘Add new contry District’ at the end of dropDownList of CGridView, which will be used for a redirecting to view/create page?
in my view/admin, I use dropDownList inside CGridView for filtering, dropdown is populated with the list of IDs that came from the database, in id=>value form. e.g.
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'municipalitie-grid',
'dataProvider' => $model->search(),
'filter' => $model,
'columns' => array(
'municipalitie_name',
array(
'name' => 'region_name',
'value' => '$data->countryDistrict->countryRegion->region_name',
'filter' => CountryRegion::model()->getRegionNames('region_name', 'region_name'),
),...
If someone is interested…
http://www.yiiframework.com/forum/index.php?/topic/14162-dependent-dropdown/page__view__findpost__p__77785