This is a migrated thread and some comments may be shown as answers.

Nested View Tamplate and user control

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Avi
Top achievements
Rank 1
Avi asked on 15 Jun 2010, 02:16 PM
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:
<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


1 Answer, 1 is accepted

Sort by
0
Avi
Top achievements
Rank 1
answered on 16 Jun 2010, 09:35 AM
well, I think I found a different approach, I'm using "EditFormSettings" instead.
 
Tags
Grid
Asked by
Avi
Top achievements
Rank 1
Answers by
Avi
Top achievements
Rank 1
Share this question
or