This is a migrated thread and some comments may be shown as answers.

Controls get "visibility: hidden !important" when using RadDecorator

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
Oscar asked on 04 Sep 2013, 09:43 PM
Hey! I am using Telerik Ajax controls in some app, but i have this problem where i use a RadDecorator and all my input controls are getting
"visibility: hidden !important" and wont work properly obviously. I tried removing this RadDecorator and the "visibility: hidden !important" attribute disappear and all the controls work fine but the RadComboBox. I am also using the Metro Skin.

this is how i am using the RadDecorator:

<telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="CheckBoxes, RadioButtons" />

one of the most important controls i am using is the RadComboBox, this is one of the controls that stop working, like if it was disabled, and it is written like this:

<telerik:RadComboBox ID="RadComboBoxBranchOffice" runat="server" DataSourceID="ObjectDataSourceBranchOffice"
     DataTextField="BranchOfficeName" DataValueField="BranchOfficeId" AppendDataBoundItems="true" MaxHeight="350">
         <telerik:RadComboBoxItem Text="--Seleccionar--" Value="0" />
<asp:ObjectDataSource ID="ObjectDataSourceBranchOffice" runat="server" SelectMethod="GetAllByOfficeId"
        <asp:ControlParameter ControlID="RadComboBoxOffice" Name="OfficeId" PropertyName="SelectedValue"
            Type="Int32" />

Is this a known issue? am i doing something wrong?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 09 Sep 2013, 02:05 PM
Hi Oscar,

I am afraid that the provided information is not enough to determine what is causing the described problem.

By default the RadFormDecorator should not apply visibility: hidden !important to input element so there is either some customization of the control or something specific to your setup. Also, the current configuration of the form decorator ensures the stylization of the check boxes and radio buttons on the page, which should not affect the combo box.

I have included a sample page that has the information from your sample, so that you can examine it and let me know if something is missing. As you will notice, the items of the combobox are populated declaratively via the Items collection, since I do not have information about its original datasource.

Please try modifying the attached page so that the problem can be examined. If this is not possible, you can also send a simple, fully runnable project that isolates the issue, which will allow me to inspect it locally and provide a more to the point answer.

Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
General Discussions
Asked by
Top achievements
Rank 2
Answers by
Telerik team
Share this question