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

4 posts, 0 answers
  1. Jacques
    Jacques avatar
    138 posts
    Member since:
    Jun 2007

    Posted 13 Nov 2013 Link to this post

    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. 
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 15 Nov 2013 Link to this post

    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!
  3. Rajesh
    Rajesh avatar
    4 posts
    Member since:
    Nov 2017

    Posted 14 Nov 2020 in reply to Petur Subev Link to this post

    i do have same problem,

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

     

  4. Alex Hajigeorgieva
    Admin
    Alex Hajigeorgieva avatar
    1082 posts

    Posted 17 Nov 2020 Link to this post

    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/.

Back to Top