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

Master/Details Scenarios and submit button problem

0 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 04 Feb 2012, 08:58 PM
I have created three versions of a master/details form that consists of an editable RadGridView and an editable details form that is bound to the current item in the gridview. I have implemented the details form with a RadDataForm, a DetailsPresenter, and as an standard grid containing controls. The advantage of the standard grid version is that you get full design time support in Visual Studio, and once the layout is perfected, it can be pasted into the DetailsPresenter with little modification. The RadDataForm version can use the same controls or it can use controls that are specifically for the dataform, and they have some advantages as well.

All three versions have a common problem, which is that there does not seem to be a simple way to detect that an update has been made in the details section of the form. What I would like to implement is a submit button that is disabled until the current item has been modified in any of the controls in the details section, perhaps with a warning popup in case the user attempts to navigate from the current item with unsubmitted updates.

I hope I'm overlooking something simple and basic (I'm new to this). But if there is nothing simple, I suppose I could handle the TextChanged and similar events on every control in order to manage the IsEnabled property of the submit button.

Any suggestions would be greatly appreciated, Thanks!


No answers yet. Maybe you can help?

Tags
GridView
Asked by
Jay
Top achievements
Rank 1
Share this question
or