1. I have to click the Edit button twice to bring the TreeList to edit mode
2. In the button click of Update button(btnUpdate_Click), I am not able to get the updated value in the edit box for 'Limit' column .
Thanks in Advance!
<
telerik:RadTreeList ID="RadTreeList1" runat="server" DataKeyNames="ID" ParentDataKeyNames="PID"
OnNeedDataSource="RadTreeList1_NeedDataSource" AutoGenerateColumns="false" HeaderStyle-Font-Bold="true" AllowMultiItemEdit= "true" EditMode="InPlace">
<Columns>
<telerik:TreeListBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID" Visible="false" ReadOnly="true">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="PID" HeaderText="PID" UniqueName="PID" Visible="false" ReadOnly="true">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name" ItemStyle-Width="150px" HeaderStyle-Width="150px" ReadOnly="true">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Limit" HeaderText="Limit" UniqueName="Limit" ItemStyle-Width="150px" HeaderStyle-Width="150px">
</telerik:TreeListBoundColumn>
<telerik:TreeListBoundColumn DataField="Expense" HeaderText="Expense" UniqueName="Expense" ItemStyle-Width="150px" HeaderStyle-Width="150px" ReadOnly="true">
</telerik:TreeListBoundColumn>
</Columns>
</telerik:RadTreeList>
protected void RadTreeList1_NeedDataSource(object sender, TreeListNeedDataSourceEventArgs e)
{
tbl =
new CounterPartyHierarchy.CounterPartyHierachyTableDataTable();
tbl.ReadXml(
@"..\hierarchy.xml");
RadTreeList1.DataSource = tbl;
}
protected void btnEdit_Click(object sender, EventArgs e)
{
foreach (TreeListDataItem item in RadTreeList1.Items)
{
item.Edit =
true;
}
}
protected void btnUpdate_Click(object sender, EventArgs e)
{
Hashtable table = new Hashtable();
foreach (TreeListDataItem item in RadTreeList1.EditItems)
{
string limit= (item.GetColumnEditor("Limit") as TreeListTextBoxColumnEditor).TextBoxControl.Text;
}
}