Write a
JavaScript
function which sets the width of the
DropDownList
to the required width and call this function
onfocus
of the
DropDownList
.
So something like:
<asp:DropDownList ID="DropDownList1" runat="server" Width="60px" onfocus="javascript:changeWidth();">
</asp:DropDownList>
Javascript:
function changeWidth()
{
document.getElementById("DropDownList1").style.width = "150px";
}