Inside my FormTemplate I have:
But when I'm trying to add a new record to the RadTreeList, "Specified Cast Is not Valid" is thrown.
Using RadGrid It was possibile to write a small code-snippet:
Is there for RatTreeList any similar or equivalent snippet?
Or any other solution?
<asp:CheckBox ID="WidocznaCheckBox" runat="server" Text="Pokazuj w drzewie" CssClass="cbx" Checked='<%#Bind("Widoczna") %>'></asp:CheckBox>But when I'm trying to add a new record to the RadTreeList, "Specified Cast Is not Valid" is thrown.
Using RadGrid It was possibile to write a small code-snippet:
if ((e.CommandName == RadGrid.InitInsertCommandName)){ e.Canceled = true; //Prepare an IDictionary with the predefined values ListDictionary newValues = new ListDictionary(); //set initial checked state for the checkbox on init insert newValues["Widoczna"] = true //Insert the item and rebind e.Item.OwnerTableView.InsertItem(newValues);}Is there for RatTreeList any similar or equivalent snippet?
Or any other solution?