Hi, I’d supposed if I got a drop down list and cgridview.
When I make a choose in drop down list, the cgridview’s data will filter by ajax call in drop down list.
Cause when I use the usually ways to filter data in cgridview, It’s also work, but the value which I choice in drop down list lost focus.
In case if I make an ajax calling with the drop down list, the ajax function request the return value, how can controller return data type, how can I fetch the data into cgridview. Is it somethings wrong in my deduces?
I’m not sure I understand what you want to do. Do you mean the choice you’ve made will not be reflected in the updated grid? It should be if you saved the data. The dropdown will be initialized to the value of $data->some_attribute on return. So if value_for_some_attribute #n is returned in the model it should show up in the dropdown field.