Weirdly rendered ComboBox inside FormView

3 posts, 1 answers
  1. asimptota
    asimptota avatar
    50 posts
    Member since:
    Apr 2011

    Posted 20 Apr 2011 Link to this post

    HI,
    I have a RadComboBox as an EditItemTemplate field within FormView. That FormView is decorated using FormDecorator. That combobox is rendered totally weird (IE, Firefox) when DecoratedControls is set to GridFormDetailsViews. But, if FormView is not decorated it renders, of course, as it should. Any help?
  2. Answer
    Niko
    Admin
    Niko avatar
    387 posts

    Posted 21 Apr 2011 Link to this post

    Hi Jasmin,

    Please, note that the DecoratedControls property specifies the HTML element types (by their tags) that should be decorated. If you wish to decorate DropDownLists you should set the DecoratedControls value to Select. If you wish to decorate the controls within a specific container then you should use the DecorationZoneID property and set the container's ID as the value. Please, check the following definition that has these two properties set:
    <telerik:RadFormDecorator ID="theFormDecorator" runat="server" Skin="Forest" DecorationZoneID="specialDecoration_Zone1" DecoratedControls="Select" EnableRoundedCorners="false" />

    Hope this helps.

    All the best,
    Niko
    the Telerik team
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. asimptota
    asimptota avatar
    50 posts
    Member since:
    Apr 2011

    Posted 21 Apr 2011 Link to this post

    Hvala Niko :)

    Problem solved. Turns out that the only thing I had to do is just to replace RadComboBox with asp:DropDownList, so I didn't use decoration zone and I've set DecoratedControls to "All". It worked just as I wanted.
    Thanx for such a quick answer.
Back to Top