Cgridview Filter Search

Hi,

I have a table

Products in that State and Category are foreign keys, I have set relation and now in CGridView its values will display , But in search , when search with its values result is not correct, I think its id gets posted, How I can solve this. Also see the screen shot this will give you a clear idea.

Please help me.

Balu.

4377

1.png

in _form.php while loading the category and state control you should change the input to select box, based on the selected value change the save action.

Hi,

there is no prblem with save action, I need to serch in cgird with state name, Now if search with id it will works perfectly.