Print Page | Close Window

13.2.1 bug: Selection is lost on header click!

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=15565
Printed Date: 02 May 2024 at 12:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 13.2.1 bug: Selection is lost on header click!
Posted By: znakeeye
Subject: 13.2.1 bug: Selection is lost on header click!
Date Posted: 06 November 2009 at 8:33pm
1) Select row 1.
2) Click on a header that sorts the rows.
3) Selection is gone.
 
Selection must be persistent when sorting, just like in Explorer (tested on Vista).


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



Replies:
Posted By: mdoubson
Date Posted: 08 November 2009 at 12:46pm
This is very easy to support on app level: store selected record indexes in OnPreSortChanged and select rows founded by records with stored indexes

using GetRows()->FindInTree(pRec) call;

ON_NOTIFY(XTP_NM_REPORT_PRESORTORDERCHANGED, XTP_ID_REPORT_CONTROL, OnPreSortChanged)

ON_NOTIFY(XTP_NM_REPORT_SORTORDERCHANGED, XTP_ID_REPORT_CONTROL, OnSortChanged)



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


Posted By: mdoubson
Date Posted: 08 November 2009 at 5:21pm
I add same feature in the Core controlled by BOOL flag - CXTPReportControl::m_bKeepSelectionAfterSort with default = TRUE (will be in next release)

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


Posted By: znakeeye
Date Posted: 09 November 2009 at 3:33pm
Great!

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


Posted By: mgampi
Date Posted: 10 November 2009 at 7:32am
Originally posted by mdoubson mdoubson wrote:

I add same feature in the Core controlled by BOOL flag - CXTPReportControl::m_bKeepSelectionAfterSort with default = TRUE (will be in next release)


Hi;

Could you hide this detail by providing Get/Set functions?


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: mdoubson
Date Posted: 12 November 2009 at 10:19am
Get update and build yourself please - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar - https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdated.rar

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


Posted By: znakeeye
Date Posted: 13 November 2009 at 2:36am
Cool! Will check later.
 
Only difference from 13.2.1 is this feature?


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


Posted By: mdoubson
Date Posted: 13 November 2009 at 10:48am
No - much more - check code

-------------
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