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

[Solved] Issue with Checkbox in EditTemplate

2 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jones
Top achievements
Rank 1
Jones asked on 30 Jun 2009, 10:32 AM
Hi,

When I click "Add new record" I am getting an Exception as "System.InvalidCastException: Specified cast is not valid."
Kindly tell me a solution.

<MasterTableView EditMode="PopUp">
<
Columns> 
      .... 
 
      <telerik:GridCheckBoxColumn DataField="IsActive" HeaderText="Is Active" /> 
 
      .... 
</Columns> 
<EditFormSettings EditFormType="Template" PopUpSettings-Modal="true"
    <FormTemplate> 
        ..... 

        <asp:CheckBox ID="CheckBox1" runat="server Checked='<%# Bind("IsActive") %>' /> 

        ..... 
    </FormTemplate> 
</EditFormSettings> 
</MasterTableView>

Regards,
Jones

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 30 Jun 2009, 11:14 AM
Hello Jones,

I recommend you examine the following forum thread:
Checkbox in editform

Let us know if you need more information.

Best regards,
Daniel the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jones
Top achievements
Rank 1
answered on 30 Jun 2009, 11:57 AM
Hi Daniel,

I understood the problem. Now its working fine. Thanks.

Regards,
Jones
Tags
Grid
Asked by
Jones
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Jones
Top achievements
Rank 1
Share this question
or