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

Making custom editor cell "dirty"

2 Answers 487 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian Roth
Top achievements
Rank 1
Brian Roth asked on 10 Apr 2012, 05:45 PM
I have a grid where one of the cells uses a custom editor to bind to a DropDownList.  The column is bound to a "DepartmentName" property and the DropDownList binds to an associated "DepartmentId" value from my model.  After the user edits the cell, I want it to show the dirty indicator.  It doesn't happen automatically, which I think is because the column property doesn't match the edit control's id.  But is there a way to force the cell to render as dirty?

Thanks for your help.

Regards,
Brian

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 11 Apr 2012, 12:03 PM
Hi Brian,

The red cell indicator is a span element with class .k-dirty. If you append it to the corresponding <td> element, it will render as dirty.
I hope this information will help you to solve the problem.

All the best,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Brian Roth
Top achievements
Rank 1
answered on 11 Apr 2012, 04:11 PM
Hi Alexander,

Thanks for the tip!  That got me pointed in the right direction, but I ended up having to add the .k-dirty-cell class to the td element to get it to work.

Regards,
Brian
Tags
Grid
Asked by
Brian Roth
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Brian Roth
Top achievements
Rank 1
Share this question
or