Hi
I would like to modify the hierarchy with templates demo for the radgrid but I am having a few problems understandinging it.
Here's the link
Firstly in the NestedViewTemplate there is this label inside the one of the pageviews of the multipageview control
<asp:Label ID="Label1" Font-Bold="true" Font-Italic="true" Text='<%# Eval("EmployeeID") %>'
Visible="false" runat="server" />
I don't understand what is going on here: Text='<%# Eval("EmployeeID")
Is the data from the current row in the master table also being bound to the NestedViewTemplate? I suppose it must be otherwise this label wouldn't have the correct value. Can you explain to me how/why the data is being bound to the NestedViewTemplate.
I have a second question. In the demo there is a grid inside the nested view template which is bound declaratively using an SQL data source. I would like to have a grid inside the template but i want to bind it programmatically and i don't know how. Is this possible and where do i do it? I presume in some data binding event for the nestedviewtemplate I have to find the grid from the controls collection of the nestedviewtemplate. But i don't know - I'm guessing. Any help would be much appreciated.
Many thanks
andrea
I would like to modify the hierarchy with templates demo for the radgrid but I am having a few problems understandinging it.
Here's the link
Firstly in the NestedViewTemplate there is this label inside the one of the pageviews of the multipageview control
<asp:Label ID="Label1" Font-Bold="true" Font-Italic="true" Text='<%# Eval("EmployeeID") %>'
Visible="false" runat="server" />
I don't understand what is going on here: Text='<%# Eval("EmployeeID")
Is the data from the current row in the master table also being bound to the NestedViewTemplate? I suppose it must be otherwise this label wouldn't have the correct value. Can you explain to me how/why the data is being bound to the NestedViewTemplate.
I have a second question. In the demo there is a grid inside the nested view template which is bound declaratively using an SQL data source. I would like to have a grid inside the template but i want to bind it programmatically and i don't know how. Is this possible and where do i do it? I presume in some data binding event for the nestedviewtemplate I have to find the grid from the controls collection of the nestedviewtemplate. But i don't know - I'm guessing. Any help would be much appreciated.
Many thanks
andrea