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

2 posts, 0 answers
  1. Oscar
    Oscar avatar
    3 posts
    Member since:
    Jun 2011

    Posted 04 Sep 2013 Link to this post

    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.

  2. Slav
    Slav avatar
    1351 posts

    Posted 09 Sep 2013 Link to this post

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top