set dirty

4 posts, 0 answers
  1. Robert
    Robert avatar
    13 posts
    Member since:
    Oct 2014

    Posted 19 Oct 2014 Link to this post

    Hi:
    I'm populating a grid field from an on blur from a field in a tab strip.
    How do I make the little red icon show in the grid signifying a dirty field so that my batch save will pick it up?

    Thanks
    Robert
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 22 Oct 2014 Link to this post

    Hello Robert,

    You should be using set method of the model in order to mark the model as dirty and next time sync is triggered the model will be send to the update action.

    Regards,
    Nikolay Rusev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Robert
    Robert avatar
    13 posts
    Member since:
    Oct 2014

    Posted 23 Oct 2014 in reply to Nikolay Rusev Link to this post



    Nikolay:

    All I’m doing is:

    function changeDescription() {
    var grid = $("#grid4").data("kendoGrid");
    selectedRow.set('Description', $("#description").val());

    }

    Now All I need to mark the field as dirty in the grid.
    Is this doable?
    If so do you have a quick example?
    Thanks
    Robert

  4. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 27 Oct 2014 Link to this post

    Hello Robert,

    The "dirty flag" is removed on very change of the DataSource which cause repaint of the Grid. There is a code-library demonstrating how to preserve the dirty indicator in incell editing and client operations.

    Regards,
    Nikolay Rusev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top