This is so simple that I am embarrassed that I am asking this question. How do I tell if a DropDownProvider field in a WHDG is dirty? I have a client side event tied to the grid.
<
Behaviors><ig:EditingCore><Behaviors><ig:CellEditing>
<CellEditingClientEvents ExitedEditMode ="grid_IsDirty"/>
This event fires correctly for all my provider field in the grid, including just tabbing thought the grid. I need to know if the value in the cell has been changed. The Editor has a method, get_previousValue() but it appears as undefined. Is there a way for me to check the isDirty at the grid level or do I have to tie individual client side events to the providers themselves?
function grid_IsDirty(grid, eventArgs) {
var editor = eventArgs.getEditor();
if (editor.get_enabled()) {siteSetDirtyData('Y');}}
Thanks for your help. Here is my code, if it helps anyone else.
Hello IntegraSys76 ,
Thank you for posting in our forum.
You can handle the grid’s CellValueChanged event. It will fire before the ExitedEditMode event if the value in the cell is changed. So if you need to know explicitly whether a cell is dirty in the ExitedEditMode event you can just put a global variable in the CellValueChanged event and access it in the ExitedEdit mode.
The provider also has ValueChanged events that you can use. In it you have access to the new and old value of the cell.
Please refer to the attached sample and let me know if you have any questions related to this.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support