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
1060
WebDropDown textbox width wrong if disabled
posted

Hi - I'm using version 9.1.20091.2087 WebDropDown.  I need to disable/enable some WebDropDown control - but the 'text' area of the combo becomes too short (and I think the font size changes?) when it changes from enable to disabled.

This is very easy to reproduce - just paste this in as an aspx page - no code behind code needed.  Just run the sample and you will see the 'disabled' combo shows as a textbox with a border within the combobox...and it is too short!.  I just want it to 'grey' out the whole control but leave the contents alone!

Can you tell me what i can tweak to make this work?

thanks in advance!

<%@ Page Language="VB" %>
<%@ Register Assembly="Infragistics35.Web.v9.1, Version=9.1.20091.2087, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
  Namespace="Infragistics.Web.UI.ListControls" TagPrefix="ig" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    <table width="500px">
      <tr>
        <td style="width:100px;">client name</td>
        <td style="width:400px;"><ig:WebDropDown ID="WebDropDown1" runat="server" Width="100%" CurrentValue="This is a test value to demonstrate the field length change" Enabled="false">
      </ig:WebDropDown></td>
      </tr>
      <tr>
        <td style="width:100px;">Job Number</td>
        <td style="width:400px;"><ig:WebDropDown ID="WebDropDown2" runat="server" Width="100%" CurrentValue="This is a test value to demonstrate the field length change" Enabled="true">
      </ig:WebDropDown></td>
      </tr>
    </table>
     
    </div>
    </form>
</body>
</html>