This is a migrated thread and some comments may be shown as answers.
combobox does look disabled
8 Answers 70 Views
This is a migrated thread and some comments may be shown as answers.
moegal
Top achievements
Rank 1
moegal asked on 08 May 2013, 04:15 PM
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

8 Answers, 1 is accepted

Sort by
0
Elliott
Top achievements
Rank 2
answered on 08 May 2013, 08:53 PM
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
0
moegal
Top achievements
Rank 1
answered on 08 May 2013, 10:15 PM
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
0
Elliott
Top achievements
Rank 2
answered on 09 May 2013, 12:28 PM
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
0
moegal
Top achievements
Rank 1
answered on 09 May 2013, 02:21 PM
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
0
Vincenzo
Top achievements
Rank 1
answered on 20 Aug 2013, 03:38 PM
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
0
Shinu
Top achievements
Rank 1
answered on 21 Aug 2013, 08:36 AM
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.
0
Vincenzo
Top achievements
Rank 1
answered on 21 Aug 2013, 09:52 AM
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.
0
Kate
Telerik team
answered on 23 Aug 2013, 12:06 PM
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.
Asked by
moegal
Top achievements
Rank 1
Answers by
Elliott
Top achievements
Rank 2
moegal
Top achievements
Rank 1
Vincenzo
Top achievements
Rank 1
Shinu
Top achievements
Rank 1
Kate
Telerik team
Share this question
or