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

For row with inline edit, set dirty to true only on value change

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shaneed
Top achievements
Rank 1
shaneed asked on 20 Mar 2014, 10:36 AM
We have grid with row set to inline edit. The row has input type of textbox, dropdown and combobox for different columns. There is save button outside the grid, which is enabled if user edited any row content (uses row dirty property to know if row is edited or not). On click save, grid rows get saved.

The expected behavior we want is to open the row in inline-edit mode if user selects the row. However, since on opening the row in inline edit mode, the row dirty is getting set to true even if values of textbox or dropdown or combobox was not changed. As a result, save button is getting enabled.

Is there a way to set dirty to true only if the value is changed in any one of the input?

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 24 Mar 2014, 10:43 AM
Hi,

I tried to reproduce this locally but to no avail – the dirty flag is set only when we change the initial value of one of the editors. Could you please provide runable example where the issue is reproduced? This would help us pinpoint the exact reason for this behavior.

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
shaneed
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or