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

[Solved] How to load data dynamically in GridView's RowDetailTemplate

2 Answers 173 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.
Nikhil Thaker
Top achievements
Rank 1
Nikhil Thaker asked on 08 Mar 2010, 11:43 AM
Hi,

I am working on Telerik's Gridview.

My Scenario :

1.> I have to show User's Addressbook in Grid View in my application.
2.> I am showing First Name, Last name and NickName in GridView Columns with Binding.
3.> When user clicks the toggle button for particular row I have to load that particular contact's full data and have to show it in Row Detail Template of that row.
4.> Now the problem is I don't know how many phones, emails or addresses are there in User's each contact and so I need to add them in RowDetailTemplate dynamically.

So how can I load user contact dynamically in row detail template  when user clicks toggle button for that particular contact ?

I am also using RadNavigationTabControl  in RowDetailsTemplate.

Can anyone help me with this..?
Thanks in advance.

Nikhil

2 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 08 Mar 2010, 12:16 PM
Hello Nikhil Thaker,

You can place a simple empty Panel in the RowDetailsTemplate. Then attach to the LoadingRowDetails event of the grid, get the Panel from the event args (DetailsElement) and add anything that you like to this empty panel. In this way everything will be dynamic.

I hope this helps.

All the best,
Ross
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
Nikhil Thaker
Top achievements
Rank 1
answered on 08 Mar 2010, 12:45 PM
Thanks Ross, for such a quick reply.

This reply has solved my issue.

Thanks again.
Nikhil
Tags
GridView
Asked by
Nikhil Thaker
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Nikhil Thaker
Top achievements
Rank 1
Share this question
or