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

Adding items dynamically

1 Answer 127 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
A K
Top achievements
Rank 1
A K asked on 22 Jul 2010, 01:08 PM

I have list of items.

Once user clicks on the item then I want to show details for these items.

I don’t want to load all item details on page load. How do I do this more efficiently.

For item details I have a user Control previously I have used Radpanel bar with list of items On page load I create all these PanelItems dynamically and add user Controls to each panel item.

Should I user Grid or Panel bar?

This time I want to load list of items on page load and dynamically load user control data when user clicks on particular item.

Can I do this? How will be view state handled if I do this on item click. If user clicks on first item I load data for that user control if user clicks on second item I will load data for that item ..what will happen to previously clicked items? On postback will it load all previously clicked items.

What’s the most efficient way to show item details with grid or Panel bar?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 22 Jul 2010, 05:57 PM
It does sound a bit like the RadPanelBar would be best here, but I believe you would be able to do this with the RadGrid as well. I looked around a bit and found this forum thread which shows how you can successfully load a user control via the code-behind whenever a RadPanelBarItem has been selected for expansion. This seems to fit your description pretty well, and hopefully that helps out!
Tags
PanelBar
Asked by
A K
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or