FormDecorator with Formview and Bounded Checkbox

2 posts, 0 answers
  1. Gianluca
    Gianluca avatar
    12 posts
    Member since:
    Dec 2012

    Posted 02 Oct 2013 Link to this post

    Hi,
    I'm using formdecorator for a formview and in ItemTemplate I user a checkbox and this is bounded with data.But it isnt checked if th DB value it's true...if I exclude checkbox to formdecorator the value is checked correctly.
    Any help?

    Sample code:

    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" 
                EnableRoundedCorners="true" Width="100%"  Skin="CustomSkin"
                DecoratedControls="All" DecorationZoneID="decoratedzone"  
                RenderMode="Lightweight" ></telerik:RadFormDecorator>

    <div id="decoratedzone">

    <asp:FormView runat="server" RenderOuterTable="true" ID="frvEmployees" 
            BorderStyle="None" BackColor="#F1F1F1"
            DataKeyNames="ID" DefaultMode="ReadOnly" 
            DataSourceID="sds" Width="100%" >
        <ItemTemplate>
    <asp:CheckBox ID="chk" Enabled="false" Checked='<%#Eval("CheckValue")%>' runat="server" /> 

    </ItemTemplate>
    </asp:FormView>
    </div>
  2. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 07 Oct 2013 Link to this post

    Hello Gianluca,

    I tested the provided sample locally with one of the built-in skins, but to no avail, as you can check in the linked screen capture. I have also attached my sample page for a reference.

    It appears that you are using a custom skin for the RadFormDecorator and it is possible that the problem is related to it, however I cannot determine this without examining the custom skin. Note that the property EnableEmbeddedSkins of the form decorator needs to be set to false, when enabling custom skins. You can find this information and the full steps for creating such a skin in this help article.

    There is one difference, since you are using the lightweight rendering of the control. The modified files of the custom skin should be based on one of the Lite skins, for example GlowLite, which is available in the following directory in your RadControls installation: Skins\GlowLite\FormDecorator.Glow.css.

    If you are still having difficulties after examining the information above, please send a fully runnable sample that isolates the issue so that I can examine 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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top