This is a migrated thread and some comments may be shown as answers.

Remove the dirty indicator programatically

2 Answers 1523 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Dan asked on 08 Jun 2018, 08:16 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 11 Jun 2018, 05:43 AM
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.
0
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 11 Jun 2018, 05:53 AM

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)

Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Stefan
Telerik team
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or