Print Page | Close Window

ShowItemsInGroups & Sort

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=12782
Printed Date: 29 September 2024 at 9:20pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ShowItemsInGroups & Sort
Posted By: Michl
Subject: ShowItemsInGroups & Sort
Date Posted: 24 November 2008 at 5:20am
Hi
 
How should work the mode ShowItemsInGroup?
If a user click on a column, do this only a group action or group and sort action?
I expect as user the second.
 
My problem is, that we have a column with values in long date format (date+time). If the user click on header for this column, the column should only be group by date. So I overwrite CompareGroupCaption. This works fine.
 
Date : 4-24-2008
----------------------------------------
4-24-2008 7:56am
4-24-2008 9:23pm
4-24-2008 4:22am
 
But I expect that several rows with same date would be sort by time, too (Compare() are not overwritten of CXTPReportRecordItemDateTime).
 
If I turn off ShowItemsInGroups and sort the column manually and then group it, it works. I found the problem in CXTPReportHeader::OnLButtonUp. The column is not marked as sorted. But the column has a sorting symbol in the header...
 
If that is a bug, I need a update as soon as possible to release an update for our software!
 
thanks



Replies:
Posted By: Michl
Date Posted: 26 November 2008 at 4:41am
Does nobody have this problem???


Posted By: znakeeye
Date Posted: 28 November 2008 at 5:51am

My advice: Make your own CXTPReportRecordItemText-derived class.



-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Michl
Date Posted: 28 November 2008 at 7:28am
I already do subclass the class CXTPReportRecordItemDate. But if CompareGroupCaption is equal (=0), Codejock don't call Compare after the item is assigned to a group!
 
I think this it is a design mistake.



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