ultraToolbarsManager ComboBoxTool (re) ValueList ValueList

Posted by PeterWokke on 25-Sep-2014 06:26

Anyone now how tot (re)set the ValueListItems in a comboBox of an ultraToolbarsManager.

Can you built a valueList and assign that to the comboBox so it is reset?

How to capture the valueChanged of the ComboBox in an  ultraToolbarsManager?

Kind regards,

Peter Wokke

All Replies

Posted by Jean Richert on 29-Sep-2014 17:07

Hi Peter,

I pinged some internal resources. I'm confident someone will get back to you shortly and if not then let me know.

Posted by Paul Clare on 30-Sep-2014 02:53

Hi Peter, Can you use the AddRange method?  See article 000014178.  Maybe this helps?

Regards,

Paul.

Posted by jquerijero on 06-Oct-2014 13:37

If the combo-box is bound, you will need to change the datasource.

If the combo-box is unbound, you can directly reassign the ValueList property.

The UltraToolbarsManager has a ToolValueChanged event. It behaves like the ToolClick event.

Posted by Nicolas on 30-Oct-2014 11:01

Hello,

You have two choice : use toolbar manager combobox or toolbar manager control link to an ultracoboeditor

For the first choice, you can acces to the combobox by :

DEFINE VARIABLE cl_Cmb AS Infragistics.Win.UltraWinToolbars.ComboBoxTool NO-UNDO.

cl_Cmb = CAST(tlb_Manager:Tools:Item['MYCMB'],Infragistics.Win.UltraWinToolbars.ComboBoxTool).
cl_Cmb:ValueList:Reset(). /* I suppose ! */
/* Add */
DEFINE VARIABLE cl_List AS Infragistics.Win.ValueListItem NO-UNDO.
cl_List = Infragistics.Win.ValueListItem().
cl_List:DisplyText = "Test".
cl_Cmb:ValueList:ValueListItem:Add(cl_List ).


For the second, more easy, you have acces to all propertx, event and method of the ultracomboeditor.

Nicolas

This thread is closed