Inserting Values to Inputs Are not Captured When Saved

3 posts, 0 answers
  1. Eric
    Eric avatar
    4 posts
    Member since:
    Oct 2017

    Posted 09 Oct 2020 Link to this post

    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. Eric
    Eric avatar
    4 posts
    Member since:
    Oct 2017

    Posted 09 Oct 2020 in reply to Eric Link to this post

    Here's my JS code.
  3. Tsvetomir
    Admin
    Tsvetomir avatar
    847 posts

    Posted 13 Oct 2020 Link to this post

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

Back to Top