Kendo Grid Save Event Arguments

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    1 posts
    Member since:
    Apr 2012

    Posted 10 May 2012 Link to this post

    Hello,
    we have just upgraded to Kendo UI Web v2012.1.503.
    
    I currently have 2 columns in my grid (col1 and col2)... after clicking add new record and populating
    col1 with text the save event is fired... e.model.Col1 is empty although their is text in the control.
    I then proceed in populating col2 with text inspecting the event arguments now shows 
    e.model.Col1 with the correct text but e.model.Col2 is empty. Only when I proceed and edit one of fields 
    for the third time are both event arguments populated but the actual argument value is not in sync
    with the actual value in the grid column.Is this a known issue as I want to make a call to the server
    only when both argument fields are populated and reflect the actual values in the grid.
    
    
    Many thanks in advance.
    
    
    
  2. Jonathan
    Jonathan avatar
    1 posts
    Member since:
    May 2012

    Posted 28 Jun 2012 Link to this post

    I'm having the same issue. I have a grid with a ComboBox edit component for one of the fields. In the save() event of the grid I want to take the value set by the ComboBox and lookup some other data before sending to the server, however the e.model argument is empty.
  3. James
    James avatar
    1 posts
    Member since:
    Sep 2020

    Posted 23 Sep 2020 Link to this post

    Is this even fixed or was there solution to this ? We use legacy version of the component too and having this issue.

    Version : * Kendo UI Complete v2012.3.1114

    Use Case:

    Kendo Window contains a Grid with inline edit enabled. In Save event e.model shows as though its just been created, values from Textbox after editing is not filled at all.

  4. Tsvetomir
    Admin
    Tsvetomir avatar
    796 posts

    Posted 28 Sep 2020 Link to this post

    Hi James,

    In general, the fact that the model is not correctly bound to the values from the editors means that there is an issue with the binder. It is important to point out that with the latest version the scenario of a grid inside a Kendo UI Window performs all CRUD operations correctly.

    Also, you should make sure that there is a model.id setup that would inform the grid which field is the unique identifier.

     

    Kind regards,
    Tsvetomir
    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