Sir,
I want to set my all webdropdown to use the the maxlist height to 120px and minheight of the list to 0 px so that it grows automatically when item increases in the dropdownlist upto 120 px and then it start showing the vericle scroll alos i want all dropdown list to use the width equivelent to the control width i set it 100% but if the values are larger it increase the width.Please reply ASAP
Thanks in advance.
Hi there, ashpawan,
First I want to make sure I'm getting your question right:
You have a WebDropDown inside another control. You have the Width property of the WebDropDown set to 100% and once you get an item inside the WebDropDown that is larger than it's current absolute width, the width of the drop down container grows? Is this the issue you are experiencing?
Thank you for using the Infragistics forums!
Hi, I am asking abt the List which opens when we click on the dropdown button.Let say there are 2 items in the list and one is large enough to coverup the dropdown control size then the list that opens on click of the button extends to the right to show the item of the list.
Hey,
Did you try manipulating the width of the list through the DropDownContainerWidth property?
Best regards.
Hi Dinev,
This is the code:
<td valign="top" class="style1"> <ig:WebDropDown ID="WebDropDown1" runat="server" Width="100%" DropDownContainerWidth="100%" Height="21px"> <Items> <ig:DropDownItem Selected="False" Text="DropDownjjjjjjjjjjjjjjjj Item" Value=""> </ig:DropDownItem> <ig:DropDownItem Selected="False" Text="DropDown Item" Value=""> </ig:DropDownItem> <ig:DropDownItem Selected="False" Text="DropDown Item" Value=""> </ig:DropDownItem> <ig:DropDownItem Selected="False" Text="DropDown Item" Value=""> </ig:DropDownItem> </Items> </ig:WebDropDown> </td>
waiting for replay
Hi there,
The DropDownContainer property is used to set a fixed absolute size for the container (meaning you would get a word wrap for larger items. If you have width set to a 100% for that property then it would behave according to the specific browser interpretation. If you want the drop down width and the drop down container width to align then I suggest that you place the drop down in a div with absolute dimensions and set EnableDropDownAsChild="true". This should make the drop down and drop down container width equivalent.
Sincerely,
I am glad for your replay ACCORDING YOUR SUGGESTION I JUST PUT IT IN DIV
It's working good .Thank u
Hey there,
I am glad it works!
Thank you for using the Infragistics forums.