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

[Solved] Assign RowDetailsTemplate Programatically

3 Answers 127 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alessandro
Top achievements
Rank 1
Alessandro asked on 25 Oct 2010, 05:21 PM
I have a user control that I want to assign to the RowDetailsTemplate programatically. I will create the user control also programatically. How do I do this?  Thanks!

 -- xavier

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Oct 2010, 04:39 PM
Hello Xavier,

You may use set the RowDetails to a particular custom UserControl with help of DetailsTemplate property of the GridViewRow. If you share more details about your exact requirements, I may suggest any further and provide a sample project if needed.
 

Kind regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Alessandro
Top achievements
Rank 1
answered on 11 Nov 2010, 11:02 PM
Maya,
     I have several Xaml files defined. What I need to do is to programatically specify one of the xaml files as the Row Detail template. But I assume I have to somehow load that file dynamically and render it. Having trouble figuring out how. Do you have any demos?
0
Maya
Telerik team
answered on 17 Nov 2010, 01:22 PM
Hi Xavier,

I believe you have already found the answer following the other forum thread you posted. 

Regards,
Maya
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
Tags
GridView
Asked by
Alessandro
Top achievements
Rank 1
Answers by
Maya
Telerik team
Alessandro
Top achievements
Rank 1
Share this question
or