update "dirty" property manually

4 posts, 0 answers
  1. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 25 Feb 2015 Link to this post

    Hi,

    I have the following case:

    I send batch records to server. Some of them get updated and others don't.

    For the successfully updated rows, I want to commit changes on data source so that "dirty" is false.

    While the others with errors, I will show the errors on Grid.

    The problem is, can I update "dirty" for specific records? Also, is it enough to update this property to let data source know that the record updated has no more changes and committed?

    Thanks
  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 27 Feb 2015 Link to this post

    Hi Bilal,

    Yes, setting the dirty field to false is enough for the DataSource to exclude the item from the next Update request, unless the item is newly added. I would also suggest checking the pushUpdate and pushCreate methods.

    Regards,
    Alexander Popov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Bilal
    Bilal avatar
    109 posts
    Member since:
    Oct 2014

    Posted 27 Feb 2015 in reply to Alexander Popov Link to this post

    Thanks Alex for the information. In fact, I thought of using pushUpdate and pushCreate, as they do silent add/update without having to submit changes later to server, however, that failed with me. Check this post here:

    http://www.telerik.com/forums/batch-update---error-reporting-from-server

    Thanks
  5. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 03 Mar 2015 Link to this post

    Hello Bilal,

    I see that my colleagues have already addressed your questions in the thread you mentioned. I would kindly ask you to keep related questions in single support ticket or forum thread - this makes it easier to follow and avoids duplicate effort on our side.

    Regards,
    Alexander Popov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready