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

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

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Oscar
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">
     <Items>
         <telerik:RadComboBoxItem Text="--Seleccionar--" Value="0" />
     </Items>
</telerik:RadComboBox>
<asp:ObjectDataSource ID="ObjectDataSourceBranchOffice" runat="server" SelectMethod="GetAllByOfficeId"
    TypeName="Location.BranchOfficeBll">
    <SelectParameters>
        <asp:ControlParameter ControlID="RadComboBoxOffice" Name="OfficeId" PropertyName="SelectedValue"
            Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

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

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Slav
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.

Regards,
Slav
Telerik
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.
Tags
General Discussions
Asked by
Oscar
Top achievements
Rank 2
Answers by
Slav
Telerik team
Share this question
or