This is a migrated thread and some comments may be shown as answers.
Batch Edit Issue
2 Answers 53 Views
This is a migrated thread and some comments may be shown as answers.
mvbaffa
Top achievements
Rank 1
mvbaffa asked on 12 Sep 2012, 06:22 PM

Hi,

I have a grid marked as Batch Editable. Only one cell is editable, I can do this by the field list of the Datasource like this:

fieldList['cellname'] = { type: 'number', editable: true };

It is working ok. When you change a cell in a row the Grid set a visual clue, like Excel, indicating that the cell has been changed.

The problem is when you, before saving the changes, navigate to another, using the pageable control. If you return
to the previous page the visual sign disappears. Internally the row is marked as dirty but there is visual sign
anymore.

How can I fix That ???

If this is a known bug I need to detect the event of page change so that I can warn the user of non saved fields.
How can I do that ???

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Todd
Top achievements
Rank 1
answered on 13 Sep 2012, 03:18 PM
It's definitely a bug, and I'm sure Telerik is aware of it, but they haven't responded to this in the forum.  It will actually disappear in many situations (changing a value for a drop-down column, sorting, or using a custom cell editor where you manually update the model for that cell/field).

What I did was just turn it off completely using CSS.  It needs to show all the time or not at all, otherwise it's confusing to the user.  It's a nice feature, so I hope Telerik can make it work reliably.

CSS to turn it off:
.k-dirty { display:none !important; }
0
mvbaffa
Top achievements
Rank 1
answered on 13 Sep 2012, 05:49 PM
Thanks, I have done the same
Tags
Grid
Asked by
mvbaffa
Top achievements
Rank 1
Answers by
Todd
Top achievements
Rank 1
mvbaffa
Top achievements
Rank 1
Share this question
or