Cgridview Filter Not Submitting
Posted 12 February 2013 - 06:07 AM
I have a small problem with use of filter in cgriedview. Sort is working ok but filter not, i got error:
Uncaught TypeError: Cannot read property 'loadingClass' of undefined jquery.yiigridview.js:253
(anonymous function) jquery.yiigridview.js:253
(anonymous function) jquery.yiigridview.js:132
What is it?
Posted 12 February 2013 - 06:36 AM
<?php $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'prod', 'dataProvider'=> $prod->search(), 'filter'=> $prod, 'columns'=>array( )); ?>
in my controller
$prod=new Products('search'); $prod->unsetAttributes(); // clear any default values if(isset($_GET['Products'])) $prod->attributes=$_GET['Products'];
My problem is, when i use it in another part of my app the filter don't work , i can sort but filter is not working. In the
?r=products/adminpart all filters are working excellent.
And i need to have this cgriedview in another part of my app!
Posted 12 February 2013 - 07:55 AM
With "other part" i was thinking about
?r=products/admin, which is the main page for "products" - there all filters, sort etc. are working good.
Now back to the place, where i have to use this "product-CGridView".
I think, main problem is the url - when i want to use it, url looks like:
and exactly here i need it. I have made just a test, for example i can use my grid without problems in
but, as said in
it dosen't work. Why?