Hi guys!
I have a master page which holds RadGrid and a few columns (ClientSelect, Edit, Delete). The rest of the columns are added during Page_Init inside content page during runtime. It all worked fine, untill I needed to create a self-hierarchy structure. When I set SelfHierarchySettings on master page, it works, but other pages that don't need it become unusable. If I set those settings in code-behind, there are no child rows rendered.
We had an idea to use <%= %> on Master page to set KeyName and ParentKeyName but it results in a compilation error (like this
I have a master page which holds RadGrid and a few columns (ClientSelect, Edit, Delete). The rest of the columns are added during Page_Init inside content page during runtime. It all worked fine, untill I needed to create a self-hierarchy structure. When I set SelfHierarchySettings on master page, it works, but other pages that don't need it become unusable. If I set those settings in code-behind, there are no child rows rendered.
We had an idea to use <%= %> on Master page to set KeyName and ParentKeyName but it results in a compilation error (like this
<
SelfHierarchySettings KeyName="<%=KeyName%>" ParentKeyName="<%=ParentKeyName%>" />
So far I found only samples when grid is either defined on aspx, or completely created programmatically. If you could provide a sample similar to my case, I'd be very thankful.