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
65
Toolbar inside ContainerControlTool of toolbar
posted

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 follows
Toolbar1-->
 ContainerControl -->
   UltrPanel-->
        Toolbar -->
            Combobox for datepicker

My code is as follows :

 Dim cboDate As Infragistics.Win.UltraWinToolbars.ComboBoxTool
cboDate = 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??

 

                                                                                                                                                                       

 

                 

 

Parents
No Data
Reply
  • 6158
    Verified Answer
    Offline posted

    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.

Children