ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
Expand or Collapse Grid rows on button click
« previous
next »
Print
Pages: [
1
]
Author
Topic: Expand or Collapse Grid rows on button click (Read 2876 times)
tarunsharma
Newbie
Posts: 20
Expand or Collapse Grid rows on button click
«
on:
December 12, 2020, 04:16:27 am »
I need to add Expand And Collapse button on the header of the pqgrid
For Example - Expand All :- That is expand all the rows of the grid all together.
Collapse All :- To collapse all the rows.
Can you suggest the best possible way to implement this functionality.
Thanks
«
Last Edit: December 12, 2020, 04:54:50 am by tarunsharma
»
Logged
tarunsharma
Newbie
Posts: 20
Re: Expand or Collapse Grid rows on button click
«
Reply #1 on:
December 15, 2020, 01:53:18 am »
Can anyone from the support team help me to expand all the rows on button click?
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: Expand or Collapse Grid rows on button click
«
Reply #2 on:
December 15, 2020, 09:59:55 pm »
To exapand / collapse all row details, iterate through all rows and apply show: true /false to pq_detail property of rowData
Code:
[Select]
grid.pageData().forEach(function(rd){
rd.pq_detail = {show: true/false};
})
grid.refresh()
Logged
tarunsharma
Newbie
Posts: 20
Re: Expand or Collapse Grid rows on button click
«
Reply #3 on:
December 16, 2020, 01:14:25 am »
It is working on the very first click. If I collapse few rows and click expand button again it will not work.
«
Last Edit: December 16, 2020, 02:24:25 am by tarunsharma
»
Logged
tarunsharma
Newbie
Posts: 20
Re: Expand or Collapse Grid rows on button click
«
Reply #4 on:
December 16, 2020, 09:38:00 pm »
not able to click Expand All button second time. Can anyone help?
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
Expand or Collapse Grid rows on button click