Adding items dynamically

2 posts, 0 answers
  1. A K
    A K avatar
    49 posts
    Member since:
    Apr 2010

    Posted 22 Jul 2010 Link to this post

    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?



  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 22 Jul 2010 Link to this post

    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!
Back to Top