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>
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>