Hi,
I am using RadGrid which contains Nested View Tamplate, inside the template I have a user control.
My problem is that I can't figure out how pass parameters from the template to the user control.
I tried this:
Both Labels holds the correct text, but the public variable "source" inside the "activityPanel" user control remains null.
How can I resolve this?
Thanks
I am using RadGrid which contains Nested View Tamplate, inside the template I have a user control.
My problem is that I can't figure out how pass parameters from the template to the user control.
I tried this:
| <NestedViewSettings DataSourceID="SqlDataSource2"> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="ID" MasterKeyField="ID" /> |
| </ParentTableRelation> |
| </NestedViewSettings> |
| <NestedViewTemplate> |
| <asp:Label ID="Label3" runat="server" Text='<%#Bind("ID") %>' ></asp:Label> |
| <asp:Label ID="Label1" runat="server" Text='<%#Bind("source") %>' ></asp:Label> |
| <ap:activityPanel source='<%#Bind("source") %>' jobId="123" ID="activityPanel" runat="server" Visible="true" /> |
| </NestedViewTemplate> |
Both Labels holds the correct text, but the public variable "source" inside the "activityPanel" user control remains null.
How can I resolve this?
Thanks