Prompt for Save when changes made in UDashboard when Refresh Tool Clicked

If I get time I’ll play around with it but… can’t promise anything.
In the meantime, maybe someone else has some ideas, has already tackled this?

For now,… hmmm, rather than populating a UD field, I’m wondering if a variable might work?
Something like this…

Set a bool variable to true whenever one of your fields is changed
Then when the refresh tool is clicked, check if bool = true and then show messagebox with buttons

  • “Yes” continue with the refresh and reset bool to false
  • “Cancel”, stop the refresh, leave the bool as true.

Also, sounds like you’re still learning how to code in E10?
If so, here is a link to some toolbar basics that I liked.

i.e. maybe you could start with seeing what is being clicked, and then adding your handling?
// add this to the using
using Infragistics.Win.UltraWinToolbars;

// and use the Wizard to generate this
private void baseToolbarsManager_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs args)
{
// and add your code, e.g. a simple messagebox to show what tool was clicked
MessageBox.Show(((Infragistics.Win.UltraWinToolbars.ToolEventArgs)(args)).Tool.Key);
}

P.S.
This link might give you some ideas too.