how to set the width of webdropdown list equal to the webdropdown width .
Hi ashpawan,
I'm just checking if you need any further assistance with this.
Hello,
You can set static width of the dropdown container using the property DropDownContainerWidth. If the width of the WebDropDown is set in percentage and you want to have the same width for the DropDownContainer, you could use the following function to handle DropDownOpening client-side event:
function DropDownOpeningHandler(sender, args) { var w = sender.get_element().offsetWidth; sender._elements["DropDown"].parentNode.style.width = w + "px"; sender._elements["DropDown"].style.width = "99%"; sender._elements["List"].parentNode.style.width = "100%";}
Please let me know if you have any questions regarding the matter.
Well Dude property DropDownContainerWidth is for webdropdown list width
1)You no need to set width to DropDownContainer when you assign width for webdropdown .
ig assembly will take care of it .But width must be in pixel
2)When you given width in ' %' ContainerWidth will be differ .for these I am also searching