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
20
Custom events on custom DateButton in UltraCalendarCombo
posted

How do you create and attach custom events to a custom DateButton in the UltraCalendarCombo control?  The online docs are..... incomplet.  I see no where in the properties to set the name of my method, and no events are available in code where I can attach the event like this:

                            AddHandler control.DateButons("key").click, AddressOf myMethod

If this is not possible, how would I go about creating my own control with the Infragistics controls, that would use an Ultra button or MS button where I can specify my own events? I need the same ComboBox type of dropdown calendar?

 

thanks

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    The DateButton class does not support that level of extensibility; when you use the 'Custom' setting for the DateButton.Type property, you can specify the date that gets selected when you click that button, but nothing more than that.

    You could probably work around this using the IUIElementCreationFilter interface, by removing the element that gets added for the DateButton, replacing it with a ButtonUIElement, and hooking the ElementClick event.

Children
No Data