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
935
Custom control derived from UltraComboEditor with Buttons Left
posted

Hello,

I am trying to create a custom control derived from a UltraComboEditor which is preconfigured with a stateEditorbutton added to ButtonsLeft and the items list pre-populated. The StateEditor button would then have available methods to null/select items in the combo.

When I add the StateEditorButton "myCheckBox" to the button collection it will show up on the design surface. However, the designer also generates code to add the same stateEditor button which when run then fails with the exception for invalid key (as the button is already in the collection.)

Also, the items being configured are added at Design time even though the code is for !DesignMode.

I would appreciate any suggestions on how to pre-configure the buttons left. Also any samples for derived UltraComboEditor would be helpful.

Wendy