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
415
Error with UltraToolbarManager and bound controls
posted

We have our "Save" button located on an UltraToolbarManager. The problem is that when clicking this save button directly after editing a control with bound data, the new value entered into the bound control is not picked up in DataSet.GetChanges(). The user has to first tab out of the control, then click the save button. One work around I have found is upon clicking on the save toolbar, set the focus to another control before actually saving. This is quite annoying and not always feasible if there isn't another control on the form to focus!

It seems like the tool bar prevents a particular "EndEdit" sort of event from firing, something that placing the same save code behind a command button instead is able to call.

  • 48586
    posted

    Hello, ­­­­­

     

    I am just checking about the progress of this issue. Let me know If you need my further assistance on this  issue?

     

    Thank you for using Infragistics Components.

  • 48586
    posted

    Hello,

    Clicking onto a button of UltraToolbarsManager, shouldn’t moves the input focus from the component, where it was. This is because UltraToolbarsManager could contains a commands like copy, paste, cut and etc. , which required the input focus to be unchanged when you click onto the command. So what you could try is to setting  DataSourceUpdateMode of the binding of the control to OnPropertyChanged, then every time when you change a property of the control, the data source will be updated.

    Please let me know if you have any further questions.