I have a datalist (list 1) that contains a collapsible panel in each row. The collapsible panel itself contains another datalist (list 2).
What I want to do, is load and bind the data in list 2 only when the panel is expanded. Because list 1 can already be quite large, and list 2 is not viewed all the time (hence also why it's collapsed), I want to avoid querying too much data during the page
load and load this data at runtime instead.
After a night's rest, I already figured I needed a linkbutton to catch the postback, but I probably would've spent a couple of hours searching for the SuppressPostBack attribute ;)
Boddah
Member
312 Points
120 Posts
Collapsible panel: load content on expand
Aug 08, 2012 02:28 PM|LINK
Hello,
I have a datalist (list 1) that contains a collapsible panel in each row. The collapsible panel itself contains another datalist (list 2).
What I want to do, is load and bind the data in list 2 only when the panel is expanded. Because list 1 can already be quite large, and list 2 is not viewed all the time (hence also why it's collapsed), I want to avoid querying too much data during the page load and load this data at runtime instead.
Is this possible to do? And if so, how? :-)
Thanks in advance!
- Dave
chetan.sarod...
All-Star
66609 Points
11270 Posts
Re: Collapsible panel: load content on expand
Aug 09, 2012 03:07 AM|LINK
Refer this
http://forums.asp.net/p/1263858/2380451.aspx
http://mosesofegypt.net/page/Building-on-demand-MasterDetail-grouping-Grid-with-GridView-and-ASPNET-AJAX-toolkit-CollapsiblePanelExtender.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
Boddah
Member
312 Points
120 Posts
Re: Collapsible panel: load content on expand
Aug 09, 2012 10:17 AM|LINK
Many thanks!
After a night's rest, I already figured I needed a linkbutton to catch the postback, but I probably would've spent a couple of hours searching for the SuppressPostBack attribute ;)