Replies
Hello Francois.
It is intentional that the UltraNumericEditor's Value property returns DBNull when the edit area is empty. This was most likely done to support binding to the Value property. You should be able to work around this using a simple DBNull check:
_Quote.NumberDeliveryDays = this.uneNumberDeliveryDays.Value == DBNull.Value ? (int?)null : (int)this.uneNumberDeliveryDays.Value;
Additionally if there are numerous places where this scenario would be encountered, you could get around the issue using a DataFilter. This forum post gives details regarding a DataFilter of this nature.
Let me know if you have any questions.
Hi Gavin.
Do you want to turn off tooltips on all disabled tools or only ButtonTools? If it is for all tools, the simplest solution would be to handle the UltraToolbarsManager's MouseEnterElement event, and set the ShowTooltips properties (on the UltraToolbarsManager and MenuSettings) based on e.Element.Enabled. This would require you to use the MenuSettings on the UltraToolbarsManager instead of the Settings on each individual PopupMenuTool:
private void ultraToolbarsManager1_MouseEnterElement(object sender, UIElementEventArgs e)
{
this.ultraToolbarsManager1.ShowToolTips = e.Element.Enabled;
this.ultraToolbarsManager1.MenuSettings.ShowToolTips = e.Element.Enabled ? DefaultableBoolean.True : DefaultableBoolean.False;
}
If you only want to do this for ButtonTools, it gets a bit more complex. Let me know if this is the case, and I'll work on the more complex solution.
Thanks,
Chris
Hello Gavin,
In order for tooltips to be displayed for child tools of PopupMenus, the ShowToolTips property needs to be set to True on either the UltraToolbarsManager's MenuSettings or each individual PopupMenu's Settings object. This should get your tooltips showing appropriately.
Let me know if you have any questions.
Chris