Hi!
I have a checkbox column within my TreeList, when Click [Add], I could get almost all of the fields within the <telerik:RadTreeList> except the checkbox field.
I have tried, if I changed the InUse Column to <telerik:TreeListBoundColumn>, it will be included in the ExtractValues Hashtable. But, when I changed it back to checkbox field(code as below), then it is not included in the hashtable. How could I get the value of the checkbox?
Thanks in advance!
SH
<telerik:TreeListTemplateColumn DataField="InUse" UniqueName="InUse" HeaderText="Enabled" EditFormHeaderTextFormat="Enabled: ">
<HeaderStyle Width="30px"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' Enabled="false" />
</ItemTemplate>
<EditItemTemplate>
<asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' />
</EditItemTemplate>
<InsertItemTemplate>
<asp:CheckBox ID="chkInUse" runat="server" />
</InsertItemTemplate>
</telerik:TreeListTemplateColumn>
.aspx.cs
protected void radTreeList_InsertCommand(object sender, TreeListCommandEventArgs e)
{
Hashtable hashPCRelation = new Hashtable();
TreeListEditableItem editItem = e.Item as TreeListEditableItem;
TreeListEditFormItem oEditFormItem = editItem as TreeListEditFormItem;
editItem.ExtractValues(hashPCRelation);
...
}