Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Issue with Confirmation of Close Button
posted

Hi
Iam very new to Infragistics and am using ultra win grid with child rows also.
So when i click on one of the child rows, my application pops up a dialog box (with save, cancel and close button)

with populated details of the clicked row and also provision to modify data. Now if i modify and save the data, it

is working great.
But when i close the pop up with "X" (close  button), it pops up a confirmation saying, "Do you want to save the

changes?".

If yes it should save, or else it should restore the old values.....
Now when i say no, its still saving... even though i had used the DialogResult.No, it is saving the changes.

Infact before before clicking the NO button itself it is saving the changes)
And for the information I am using ultraGridRowEditTemplate.

Parents
  • 469350
    Offline posted

    You might want to check out the UpdateMode property on the grid.DisplayLayout. By default, the grid commits the changes to the underlying data source when it loses focus. So that's probably what's happening here.

    So you may want to do your validation in the BeforeRowUpdate event of the grid.

    Or, you may want to change the UpdateMode to something that does not include the grid losing focus - and then you will have to manually handle when the grid commits the changes by calling grid.UpdateData.

Reply Children