Populate() automatically expands groups |
Post Reply |
Author | |
Kayako
Newbie Joined: 04 January 2006 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 25 November 2009 at 5:48pm |
Greetings,
We're trying to use the report control to display data that is refreshed on an interval. Whenever we update the data, we iterate the rows and call the Set*() methods on them, then Populate(). Here's the problem: If item A is under a group called "Group 1" and you collapse Group 1, the next call to Populate() expands Group 1. We do not wish for this to happen. Is this a bug? Is there a way to stop the control from expanding collapsed groups on a call to Populate? Thanks in advance! |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Before your call to update data from data source you can remember all group states (expanded or collapsed) and after populate restore this states set again - looks very easy. Default behaviour is proper as after you change data some of groups can changes - e.g. previous visible child row will be invisible under your logic as now will have another group row which can be collapsed.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |