have grid with combo editor in one column. Currently use editCellEnding event to update relevant data... but it is get fired only when leaving cell for another one..
But if form get closed ( apparently it is losing focus ) it is not get fired.. how to address this issue. I am on the version 14.1, please do not advise to update. Hopefully there is some general approach.
Thanks.
Hello Michael,
There is an event that is fired every time the value in the comboBox changes - selectionChanged. The function, that is to be fired on that event is described in the editorOptions of a column.
I created a sample, illustrating how it is used.
Feel free to contact me if you have further questions.
Regards,Ivaylo HubenovEntry-level developer
Thanks
thanks, works as described.
Yes, there is no rowID attribute of the "ui" object in the selectionChanged event. You can get the row Id with a query. For example:
selectionChanged: function (evt, ui) { alert($("td.ui-iggrid-editingcell").parent().attr("data-id"));}
Feel free to contact me if you have any questions.
Hello Ivaylo,
I need to continue with this.. Sample that you provided works fine.. the little issue :
When I use editCellEnded of the grid the first two lines are :
editCellEnded: function (evt, ui) { var name = $(ui.editor).data().igCombo.value(); rowID = ui.rowID;
..............................................
when I would move it to selectionChanged: function (evt, ui) {... of the combo, the value can be obtained by ui.items.. but I also need reference ( value ) of the row index ( rowID )
how I can obtain it while in selectionChanged event of the combo editor.