Combobox width

2 posts, 0 answers
  1. Senthil ramna
    Senthil ramna avatar
    67 posts
    Member since:
    Mar 2010

    Posted 23 Aug 2010 Link to this post

    I am using RadControls_for_ASP.NET_AJAX_2009_1_311.
    <telerik:RadComboBox ID="radProject" AutoPostBack="True" 
    runat="server" DropDownWidth="240px"          onselectedindexchanged="radProject_SelectedIndexChanged"                         MarkFirstMatch="True" ondatabinding="radProject_DataBinding" Skin="Web20" 
    OnClientBlur="OnClientBlurHandler">
    </telerik:RadComboBox>

    In this i wanted to set dropdown width for the combobox so i have set DropDownWidth = "240px". This width is required only for some logins i.e the text is long only in some cases.
    My question is can i set something like minimumdropdownwith and maximumdropdownwidth so that the combobox dropdownwidth will increase or decrease based on the text that will be loaded in the Combobox.
    i found a link http://www.telerik.com/help/winforms/combo_propertiessizing.html but this is for winforms. Can i achieve the same in ajax controls.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 03 Sep 2010 Link to this post

    Hello Senthil,


    I hope the following code library will help you in this.
    Dynamic Dropdown width


    Regards,
    Shinu.
Back to Top