3 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 18 Jan 2013, 06:06 AM
Hi,
I suppose you want to get the parent of the TreeListItem. Try the following code snippet.
C#:
Hope this helps.
Regards,
Princy.
I suppose you want to get the parent of the TreeListItem. Try the following code snippet.
C#:
protected void RadTreeList1_ItemDataBound(object sender, TreeListItemDataBoundEventArgs e) { if (e.Item is TreeListDataItem ) { TreeListDataItem item=(TreeListDataItem)e.Item; Response.Write(item["parent"].Text); } }Hope this helps.
Regards,
Princy.
0
0
Princy
Top achievements
Rank 2
answered on 21 Jan 2013, 04:18 AM
Hi,
Try the following code snippet to achieve your scenario.
C#:
Hope this helps.
Regards,
Princy.
Try the following code snippet to achieve your scenario.
C#:
protected void RadTreeList1_ItemCommand(object sender, TreeListCommandEventArgs e){ if (e.CommandName == RadTreeList.EditCommandName) { TreeListDataItem item = (TreeListDataItem)e.Item; string value = item["UniqueName"].Text; } if (e.CommandName == RadTreeList.InitInsertCommandName) { TreeListDataItem item = (TreeListDataItem)e.Item; string value = item["UniqueName"].Text; }}Hope this helps.
Regards,
Princy.