Hi All,
I have a ContainterContol tool in a toolbar which has its control property set to an UntraPanel which internally holds another toolbar. However when one of the internal toolbars combobox tool value is changed it it not updated
Heirarchy is as followsToolbar1--> ContainerControl --> UltrPanel--> Toolbar --> Combobox for datepicker
My code is as follows :
Dim cboDate As Infragistics.Win.UltraWinToolbars.ComboBoxToolcboDate = CType(toolbarmanager2.Toolbars("toolbar2").Tools("Conboboxtool"), Infragistics.Win.UltraWinToolbars.ComboBoxTool)cboDate.Text = calDate.SelectionStart.ToShortDateString
CalDate is a ystem.Windows.Forms.MonthCalendar
I am simply finding the inter tool adn setting the value.Do I have to do something different as the internal toolbar is in a panel of ContainerTool??
Thank you Chris.
That worked.
Hello,
Based on your description, I don't believe the issue is related to the panel. By default, the DropDownStyle property on the ComboBoxTool is set to DropDownList. This forces the text/value assigned to the control to be one of the items within the its ValueList.
What is your DropDownStyle property on the ComboBoxTool set to? If it is set to DropDownList, is there an item that has its DisplayText set to the short date string of cboDate?
If you want to be able to assign any value to the ComboBoxTool, you will need to change the DropDownStyle to DropDown.
Let me know if I can be of further assistance.
Chris.