Update not calling server method

2 posts, 0 answers
  1. Anoop
    Anoop avatar
    2 posts
    Member since:
    Jun 2020

    Posted 13 Jun 2020 Link to this post

    Hi, My kendo inline grid is not calling the update method in controller, when any of its fields is autopopulated dynamically.

    I am not manually editing any of the fields in the particular row, instead the fields are getting automatically populated. And on update click I need to do validation in server controller method .But unfortunately the control is not going to the server method on update button click.

    Can someone help me to resolve this,


  2. Ivan Danchev
    Ivan Danchev avatar
    2152 posts

    Posted 17 Jun 2020 Link to this post

    Hi Anoop,

    How exactly are the record fields populated? For example, setting the field value with the dataItem's set method, as demonstrated below, works as expected and on clicking the "Save" button in the Grid's toolbar, call to the "Update" action is sent.

    <input type="button" value="Set Value" onclick="setValue()" />

    click handler:

    function setValue() {
      var grid = $("#grid").data("kendoGrid");
      var dataItem0 = grid.dataSource.data()[0];
      dataItem0.set("ProductName", "apple");

    Ivan Danchev
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top