Use some JavaScript behind an expand/collapse button to hide/unhide the nested GridView. It would be set to hidden by default. Each group would have its own ID, which you pass to the function. The ID could be the client ID of the nested GridViews, or a panel
that holds the nested GridView.
mdkaleem1221
Member
107 Points
31 Posts
Crystal Report Collapsible panel
Dec 27, 2012 05:12 AM|LINK
Hello,
I want to have expandible and collapsible group wise data. Like
Name Value1 Value2
(group 1)Department 1 12 450
Do what u love and love what u do.
Please Mark as Answer, If it helps u...
NadeemZee
Participant
942 Points
179 Posts
Re: Crystal Report Collapsible panel
Dec 27, 2012 09:03 AM|LINK
Hi
Use some JavaScript behind an expand/collapse button to hide/unhide the nested GridView. It would be set to hidden by default. Each group would have its own ID, which you pass to the function. The ID could be the client ID of the nested GridViews, or a panel that holds the nested GridView.
function hidesection(tbl) { document.all("table" + tbl).style.display='none'; } function showsection(tbl) { document.all("table" + tbl).style.display=''; } <INPUT type="image" src="../images/but_collapse.gif" onClick="hidesection('1')" id="hide1"> <INPUT type="image" src="../images/but_expand.gif" onClick="showsection('1')" id="show1"> <table border="0" cellpadding="2" id="table1"> ...nested content </table>Do FEAR (Face Everything And Rise)
Please mark as Answer if my post helps you..!
mdkaleem1221
Member
107 Points
31 Posts
Re: Crystal Report Collapsible panel
Dec 27, 2012 10:47 AM|LINK
Hi,
I requirement of collapsible panel functionality is in Crystal reports and not in gridview.
Do what u love and love what u do.
Please Mark as Answer, If it helps u...