Remove the dirty indicator programatically

3 posts, 1 answers
  1. Dan
    Dan avatar
    173 posts
    Member since:
    Nov 2017

    Posted 08 Jun 2018 Link to this post

    I have a grid with a custom popup editor. The grid is updated manually but I want to remove the dirty indicator. On forums I found that setting the dirty property on the model to true would solve the problem. However in the below dojo you will see that it does not

    https://dojo.telerik.com/OXafoRaM

    What else needs to be done? Is it a requirement to also remove the dirtyfields?

    Also on my application for some reason if I update two rows only one row has the dirty indicator.

  2. Answer
    Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 11 Jun 2018 Link to this post

    Hello, Dan,

    Thank you for the example.

    The indicator is still shown as the Grid is not be re-rendered by programmatically setting the dirty indicator.

    If the Grid is refreshed after that the indicator will be hidden:

    https://dojo.telerik.com/OXafoRaM/2

    As refreshing the Grid may not be ideal, using CSS to visually hide the indicator will also be an option. The CSS can be added dynamically based on the row.

    https://docs.telerik.com/kendo-ui/knowledge-base/disable-dirty-indicator-using-css

    As for showing the indicator only on one of two fields, please share an example demonstrating this, as the issue could be caused by the additional changing of the model values.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Dan
    Dan avatar
    173 posts
    Member since:
    Nov 2017

    Posted 11 Jun 2018 in reply to Stefan Link to this post

    Hi Stefan,

    I did not want to use the css because I do not know if this is desired functionality on every grid. But is seams that I have other choice.

    As for the two fields I never said that. What I said was two rows. When I am editing a row before updating that row I am also updating another row. (Think like having a boolean value that only one row can have that Boolean value true - so I set the Boolean value to false on all other rows)

Back to Top