Print Page | Close Window

Populate() automatically expands groups

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15721
Printed Date: 29 September 2024 at 1:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Populate() automatically expands groups
Posted By: Kayako
Subject: Populate() automatically expands groups
Date 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 1We 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!



Replies:
Posted By: mdoubson
Date Posted: 28 November 2009 at 11:21pm
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.

-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net