3
Answers

Using CollapsiblePanelExtender/any alternative Control within Gridview(binded with database) to expand and collapse data

Chakshu Jindal

Chakshu Jindal

12y
2.7k
1
I want to use CollapsiblePanelExtender Control within GridView, and that GridView is binded with database

Actually, what I am trying is :

1)    GridView is showing name of list of the employees, and when I click on the name of a particular employee, whole details of the employee(gets expanded) will be shown inside Panel or anything suitable, and again when I click on the Name (details get collapsed).

2)    Expanding and collapsing can be multiple too, i.e. when I click on 2 names, then both the employee details must be expanded unless I collapse any of them.

I am not getting the idea, How and what to use for this problem. Can anyone help me out with this problem.
Answers (3)
0
Abhijit barua

Abhijit barua

NA 587 203.6k 12y
ya....so, u can use linkbutton or other control to bind all employee then at click event from web service u can bind his/her details below 

CollapsiblePanel

...
0
Chakshu Jindal

Chakshu Jindal

NA 23 12.6k 12y
@Abhijit Barua: Thanks my friend for your help, but you didn't get my question exactly, I know that this thing can be dynamically done, but list of employees that is to be shown in GridView is through database and not dynamically. The answer you suggested is valid for less number of employees and if want to make the same for 500 or 1000 employees, we can't do the same. Thus, database plays a major role and that's what the problem is.
0
Abhijit barua

Abhijit barua

NA 587 203.6k 12y
take  CollapsiblePanelExtender one at .aspx page. Then dynamically create pane for each employee. suppose if u have 5 employee then 5 panel will create. give panel name as employee name. now create dynimically some label and textbox as you want to show for employee details. then bind with respective data. then add all control to panel. add panel to  CollapsiblePanelExtender. 


Thank you