Hi everyone
I have a generated CRUD with CGridView for article management.
Also i have an extjs treeView which is used to display categories. Articles is contected with Categories with many-to-many relation.
There is a function that catches category-click event.
How can i add hidden field to CGridView filter which will be changed with function and force CGridView ajax update?
Page 1 of 1
CGridView filter extension How to make externaly managable js field
#2
Posted 16 May 2010 - 11:03 AM
Allready done with
And such js in function:
And model modification (added public $category_id and modified search method)
'filter'=>'<input type="hidden" name="Content[category_id]" id="update_by_tree" value="'.$model->category_id.'"/>',
And such js in function:
tree.on('click',function(n) {
$('#update_by_tree').val(n.id);
$('#update_by_tree').change();
} );And model modification (added public $category_id and modified search method)
#3
Posted 16 May 2010 - 10:49 PM
hi olexander,
may i ask, is your js tree work when you click to page two or interact with ajax action such search or sort record?, mine not works (ckeditor), i wonder why.
is there any method must i set?
may i ask, is your js tree work when you click to page two or interact with ajax action such search or sort record?, mine not works (ckeditor), i wonder why.
is there any method must i set?
Share this topic:
Page 1 of 1

Help













