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

Kendo Grid Save Event Arguments

3 Answers 217 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 10 May 2012, 01:06 PM
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.

3 Answers, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 2
answered on 28 Jun 2012, 03:46 PM
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.
0
James
Top achievements
Rank 1
answered on 23 Sep 2020, 04:46 PM

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.

0
Tsvetomir
Telerik team
answered on 28 Sep 2020, 11:41 AM

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

Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 2
James
Top achievements
Rank 1
Tsvetomir
Telerik team
Share this question
or