Red Glyph not going away after BatchEdit OnBatchEditCommand completes

0 Answers 38 Views
Ajax Grid
Keith
Top achievements
Rank 1
Iron
Iron
Keith asked on 19 Apr 2023, 04:51 PM

So we have BatchEdit working and used in multiple pages. On one though one of the fields that gets edited is via a RadComboBox. No issues with changing, submitting with a CommandButton to save. All good. The only issue is that when you change the item in the Combo a little red glyph shows up in the cell upper left corner to indicate the data is changed. This happens with other cells as well and is expected and good.

When we click the save button the BatchEditCommand event fires and the data is saved.  If the Combo box was changed the data is changed correctly, but the Red Glyph doesnt go away. Even if we rebind the grid the glyph doesnt go away. If we change only cells that are just textboxes the Red Glyph goes away after the save.

What are we missing?

Attila Antal
Telerik team
commented on 24 Apr 2023, 09:44 AM

Hi Keith,

One explanation I can think of is a code that is manually changing the cell value upon loading/reloading the page. Let's say that the first cell in the first row of the data source has a value "hello", which is then bound to the Grid. Upon loading the page, something changes the first cell in the first row of the Grid, so it detects the value being different than the value coming from the data source, hence marking it as dirty.

The dirty mark (red triangle) can also be set manually by assigning a specific CSS class to the cell, even if there were no changes, the cell would appear to be dirty. 

There could be multiple reasons causing this problem, and to be able to tell you exactly what, I would need to see the current implementation. Using that, I would try to replicate the issue and find out the cause.

Please share more details, or instructions to help us replicate the problem and I will take a look.

 

No answers yet. Maybe you can help?

Tags
Ajax Grid
Asked by
Keith
Top achievements
Rank 1
Iron
Iron
Share this question
or