Hi,
I am using telerik RadGridview 2013 Q3. We have a N-Tier app, so I am saving the record per row instead of per cell. I have a requirement from the business user mandating a confirmation dialog to be shown asking if the user wants to save the data when the user navigates away from the current editing row. I tried to show the confirmation dialog at the roweditended event, but when the user clicks on No, the row's edit mode is still being ended. I don't want the edit mode to end when the user does not want to save the row and I want the focus to stay on the current editing cell.
The way I think this might work is that if we can somehow stop the roweditended event chain in code, I tried to call e.Handled = true, but that doesn't do anything, the row is still being edit ended.
A workaround I found is that If I move the confirmation dialog code to the rowvalidating event and set the IsValid to false to stop the row edit ended event being fired, however this causes an undesired side effect of the row turning to red, I have consulted with the business users, and they feel like it's too confusing to have the background turn red when there's no validation error.
My question would be, how does telerik cancel the row level editing event without setting the IsValid to false?
I am using telerik RadGridview 2013 Q3. We have a N-Tier app, so I am saving the record per row instead of per cell. I have a requirement from the business user mandating a confirmation dialog to be shown asking if the user wants to save the data when the user navigates away from the current editing row. I tried to show the confirmation dialog at the roweditended event, but when the user clicks on No, the row's edit mode is still being ended. I don't want the edit mode to end when the user does not want to save the row and I want the focus to stay on the current editing cell.
The way I think this might work is that if we can somehow stop the roweditended event chain in code, I tried to call e.Handled = true, but that doesn't do anything, the row is still being edit ended.
A workaround I found is that If I move the confirmation dialog code to the rowvalidating event and set the IsValid to false to stop the row edit ended event being fired, however this causes an undesired side effect of the row turning to red, I have consulted with the business users, and they feel like it's too confusing to have the background turn red when there's no validation error.
My question would be, how does telerik cancel the row level editing event without setting the IsValid to false?