I i’m trying to setup a cgridview with a cjuiautocomplete in the filters and an action to filter the content according to user input
I managed to get to the point where the filter appears as it should and the autocomplete works as it should with the calls to the autocomplete action to flter the correct fields according to user input
However what happens is that when and option is selected from the cjuiautocomplete dropdown the value is copied to the filter field but this happens before the Cgridview URL is built which means that the cgridview ajax update does not include the selection from the cjuiautocomplete dropdown but instead it includes only the user input in the filter text field.
I managed to find out that this is because the event that triggers the cgridview ajax update is .change() (live event in the body element) and i believe that this event is triggered when the filter text field looses focus.
I did this once, but wound up not using it for other reasons, so I don’t have what I did immediately handy, but I think what I did was override CGridView’s updateSelector, and then triggered ajax updates manually.
My problem is not after the ajax update is before.
When i select the value from the autocomplete drop down list cgridview does not use the value because the ajax update is triggered as soon as the focus leave the input filter field wich happens has soon as i select the item from the drop down list