G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Grid collapse state is reverted on value change in a uncollapsed row

Solved!
Go to solution

Hi,

 

Is there a property that can be set either through the Gweb UI or JSLI to set the collapse behavior of a grouped data grid with colapsed groups?

 

Like in the image below tghe group "Disconnected" is collapsed. When I chnage the value of the checkbox control in the selection column it uncollapses the group "Disconnected" which is not what I would like. The collapse states should remain unaffected by anything that happens in uncollapsed rows.

 

Grid value update.PNG

Regards,
André (CLA, CLED)
0 Kudos
Message 1 of 4
(1,496 Views)

To complete my colleague's question, I'll add a simple example to illustrate the problem:

 

  • Run the Program

DavidG_0-1686832729664.png

  • Group by "A"

DavidG_1-1686832743036.png

  • Collapse a group (here A: 1)

DavidG_2-1686832755580.png

  • When we change the value of the checkbox (B) the group is automatically extended:

DavidG_3-1686832770431.png

 

0 Kudos
Message 2 of 4
(1,476 Views)
Solution
Accepted by topic author andre.buurman@carya

Unfortunately the collapsed groups expanding on value change is a limitation of the underlying third-party JavaScript control used by the Data Grid. There isn't a reasonable way to preserve which groups are expanded on value updates such as when the user edits the control value.

 

An alternative to consider may be the tree control which has first class single / multi selection support unlike the Data Grid.


Milan
Message 3 of 4
(1,412 Views)

Too bad, can't have it all 😉

 

Thanks for replying. We'll have a look into the tree control for future updates to the application.

Regards,
André (CLA, CLED)
0 Kudos
Message 4 of 4
(1,398 Views)