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
Hi Peter,
I pinged some internal resources. I'm confident someone will get back to you shortly and if not then let me know.
Hi Peter, Can you use the AddRange method? See article 000014178. Maybe this helps?
Regards,
Paul.
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.
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