combobox does look disabled

9 posts, 0 answers
  1. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 08 May 2013 Link to this post

    I have an <asp:Panel that I am enabling and disabling. I have a combobox in that panel.

    The combobox does not look disabled. It seems to work fine but looks enabled regardless.

    I am using the Telerik theme. See attached.

    Thanks, Marty
  2. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 08 May 2013 Link to this post

    agreed

    I styled 2 RadComboBoxes - it's cumbersome to do and depends on whether the control is skinned or not

    this css snippet is for a control where there wasn't a skin - and I put cssclass="rcbVendorCSS" on the control
    div.rcbVendorCSS .rcbInputCell INPUT.rcbInput
    {
        background-color: White;
        font-family: Trebuchet MS;
        font-size: 14px;
        font-weight: normal;
        line-height: 16px;
        color: #000000;
    }

    this snippet was with skin Sunset on the entire page
    div.RadComboBox_Sunset .rcbInputCell INPUT.rcbInput
    {
        font-size: medium;
        font-weight: 600;
        color: #A21C62;
    }

    hope that helps
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 08 May 2013 Link to this post

    Marianne,

    I am not sure I follow.  The combobox is not fully disabled. I can not select a value but does respond when I click on it.

    Do you suggest I add a style when disabled and remove it again when enabled?

    Thanks, Marty
  5. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 09 May 2013 Link to this post

    I may have oversimplified your problem
    I thought that you were saying that a RadComboBox looks disabled when it actually is Enabled and working, which is what I was observing
    I was giving you examples of how to access the control in a style sheet to override the skin, in your case
  6. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 09 May 2013 Link to this post

    Sorry my title should say "does not look disabled"

    I appreciate your help.  I was able to just disable each combobox separately and enable them when the panel gets enabled.

    Thanks again.

    Marty
  7. Vincenzo
    Vincenzo avatar
    5 posts
    Member since:
    Jul 2010

    Posted 20 Aug 2013 Link to this post

    Hi, I have the same problem:

    aspx
    <div>Disabled implicity by RadAjaxPanel's enable property (panelForm.Enabled = False)</div>
    <telerik:RadAjaxPanel runat="server" ID="panelForm1" style="border:1px solid;padding:8px;width:250px">
      <telerik:RadComboBox ID="cmb1" runat="server" ToolTip="Tipo Contratto" Width="200px" MarkFirstMatch="true" WrapItemText="True" AllowCustomText="False" AutoPostBack="true" OnSelectedIndexChanged="cmbTipoContratto_SelectedIndexChanged" ValidationGroup="tabCliente">
           <Items>
               <telerik:RadComboBoxItem Text="Standard" Value="STANDARD" />
                <telerik:RadComboBoxItem Text="Staff Leasing" Value="STAFF_LEASING" />
           </Items>
        </telerik:RadComboBox>
    </telerik:RadAjaxPanel>
     
    <div>Disabled explicity (cmb2.Enabled = False)</div>
    <telerik:RadAjaxPanel runat="server" ID="panelForm2" style="border:1px solid;padding:8px;width:250px">
        <telerik:RadComboBox ID="cmb2" runat="server" ToolTip="Tipo Contratto" Width="200px" MarkFirstMatch="true" WrapItemText="True" AllowCustomText="False" AutoPostBack="true" OnSelectedIndexChanged="cmbTipoContratto_SelectedIndexChanged" ValidationGroup="tabCliente">
            <Items>
                <telerik:RadComboBoxItem Text="Standard" Value="STANDARD" />
                <telerik:RadComboBoxItem Text="Staff Leasing" Value="STAFF_LEASING" />
            </Items>
        </telerik:RadComboBox>
    </telerik:RadAjaxPanel>


    C#
    protected void Page_Load(object sender, EventArgs e)
    {
        panelForm1.Enabled = false;
        cmb2.Enabled = false;
    }

    In first case the RadComboBox appears only with arrow deactivated but i'm able to write inside the box with the autocomplete.
    In second case the RadComboBox appears fully deactivated.

    The problem happen both with RadAjaxPanel panel that with Asp Panel with Telerik version 2013.2.717.40 while does not happen in version 2012.2.912.40

    Should I disable
    controls one by one but someone has an alternative solution?


    Thankyou
  8. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Aug 2013 Link to this post

    Hi Vincenzo ,

    I tried this in Telerik Version  2012.2.912.40 and it is working for me. But there is issue in the Latest version(the version I tried-2013,2,611,40).So this is one Version Bug.As a work around you can disable the ComboBox seperately.

    Thanks,
    Shinu.
  9. Vincenzo
    Vincenzo avatar
    5 posts
    Member since:
    Jul 2010

    Posted 21 Aug 2013 Link to this post

    Thanks Shinu, i have used Telerik v 2012.2.912.40 two years ago for my project and, as you have told, all is working well. Now i've necessity to use a new feature included in telerik version 2013.x.x.x but if i upgrade the libraries I must change large amount of web forms (to disable radcombobox correctly).

    You know if this issue was already tracked and included in current roadmap of next release? what is the date of next release?  maybe i can try to wait the next release if is imminent.

    Thank you very much.
  10. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 23 Aug 2013 Link to this post

    Hi Vincenzo,

    We still have not resolved the issue with the RadAjaxPanel and the RadComboBox control. Unfortunately I can not give you a specific timeframe when the issue will be fixed since all of our task have already been planned for the upcoming Q3 2013.

    Regards,
    Kate
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017