Problem with sorting and filtering in CGridView

I’m using CGridView to display most of my table data in my application. I recently noticed a problem I cannot find a solution for. The problem happens even in the default code that is generated by Yii.

I go to a page which has CGridView and enabled filtering and sorting enabled. when i start filter my data, it behaves ok and It keeps all the filtering info on the input boxes after making the ajax update of the table. The problem starts As soon as I do data sorting two times consequently on the same column. After this, any filtering that i try to do fails…

what do you mean fails? Errors? or just nothing? Try to investigate in firebug what the application returns so we can help you further

Hi,

I had the same problem but the solutions in the thread Filter after sorting problem at GridView helped me solve it.

George