I am trying to get a client data key value in my rad tree list, but it always returns null:
Here is the markup code, where my data key is well defined:
What can I do to get the datakey for a
private List<xItems> GetTreeListChanges() { List<xItems> xItems = new List<xItems>(); foreach(TreeListDataItem rtlItem in rtlxItems.Items) { string xItemsId = Convert.ToString(rtlItem.GetDataKeyValue("xItemsId")); }
[...]
}Here is the markup code, where my data key is well defined:
<telerik:RadTreeList ID="rtlxItems" runat="server" AllowMultiItemEdit="false" ParentDataKeyNames="ParentId" DataKeyNames="ChlidId" ClientDataKeyNames="xItemsId">What can I do to get the datakey for a
TreeListDataItem ?