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

Inserting Values to Inputs Are not Captured When Saved

2 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 09 Oct 2020, 10:21 PM
I'm trying to assign a value to 4 separate text inputs using jQuery inside of my Kendo Grid. My JS function works and the text inputs do populate with data but when I try creating a new record the data appears to not be bound when passed back to my Web API. 

2 Answers, 1 is accepted

Sort by
0
Eric
Top achievements
Rank 1
answered on 09 Oct 2020, 10:24 PM
0
Tsvetomir
Telerik team
answered on 13 Oct 2020, 12:19 PM

Hi Eric,

It is correct that simply changing the value of the inputs programmatically will not apply the changes to the data time. You should additionally trigger the change event:

https://api.jquery.com/trigger/

For instance:

$(input).trigger("change"); // where input is the actual input HTML element on your side

I hope this helps.

 

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
Eric
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Tsvetomir
Telerik team
Share this question
or