This is a migrated thread and some comments may be shown as answers.

Grid save event fires before column editor drop down list change event

3 Answers 216 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jacques
Top achievements
Rank 2
Jacques asked on 14 Nov 2013, 05:58 AM
We're using the approach to show a drop down list in the grid row when a user clicks on the cell. In the change event we're changing values in the grid's data source to match a selection made from the drop down list. 

This all seems to work fine, the grid datasource values are being changed, the only problem is that the grid's save event fires before dropDownList's change event. 
This is a problem because the grid's dataSource.dataItem values have not been changed yet. 

Question is: Why would the grid's save event fire before the change event of the dropDownList. More importantly, is there some other event we can bind to on the dropDownList which will happen before the grid's save event is called? 

The importance here is that the grid's save event is calling a refresh on the grid. 

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 15 Nov 2013, 04:48 PM
Hello Jacques,

The order of the events is slightly different since when there is dropdownlist inside the cell editor template clicking on the DropDownList popup is actually clicking outside of the Grid, since the popup editor is attached to the Body and it is not part of the Grid.

Here is the order of the events:

DDL SELECT
Grid save event
DS CHANGE
dataBound
DDL CHANGE

You can use the select event of the DropDownList.


Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Rajesh
Top achievements
Rank 1
answered on 14 Nov 2020, 04:37 PM

i do have same problem,

when i click different td on jquery kendo grid or toolbar save button dropdown list change event firing why.

 

0
Alex Hajigeorgieva
Telerik team
answered on 17 Nov 2020, 02:44 PM

Hello, Rajesh,

When a dropdown is used as a grid editor as the original poster describes, the dropdown list change is fired after the grid save event.

The dropdown list change event is not fired when you click on another cell or the toolbar as far as I can tell from this test Dojo:

https://dojo.telerik.com/@bubblemaster/akoJoYaD

Can you describe the steps we need to take to reproduce the active dropdown triggering its change event on another cell click or the toolbar save button click?

Look forward to hearing back from you.

Kind Regards,
Alex Hajigeorgieva
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Jacques
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Rajesh
Top achievements
Rank 1
Alex Hajigeorgieva
Telerik team
Share this question
or