Master/Details Scenarios and submit button problem

1 posts, 0 answers
  1. Jay
    Jay avatar
    1 posts
    Member since:
    May 2011

    Posted 04 Feb 2012 Link to this post

    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!


Back to Top