removing items off a GroupBy area |
Post Reply |
Author | |
Russ
Groupie Joined: 21 September 2003 Location: Russian Federation Status: Offline Points: 28 |
Post Options
Thanks(0)
Posted: 04 January 2006 at 3:58am |
Hi,
I like the way removing off of items is done in the ReportSample. But I cannot achieve the same result in my view class inherited from CXTPReportView. And I cannot find any specific code in the sample that enables this functionality: 1. A black cross shown over the column's label when user drags and moves the label out of the GroupBy area. 2. removed column returns back to the control I tried adding m_wndReport.ShowGroupBy() into sample's CTaskListView::OnCreate method. When I open Task Report sample it behaves exactly what I see in my own report view, i.e. it does not remove column's label off the groupBy area. So what is the trick? Thank you. |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Rouslan,
Please ensure you call Populate() method after changing GroupBy structure. Following piece of code inserted into the end of CTaskListView::OnCreate method works fine for me:
-- HTH, Serge |
|
Russ
Groupie Joined: 21 September 2003 Location: Russian Federation Status: Offline Points: 28 |
Post Options
Thanks(0)
|
I did try that but no luck. but I also tried to use this
m_wndReport.GetReportHeader()->AllowColumnRemove(TRUE); this solved the first half of the problem. Now i can see the black cross when move the label outside of the GroupBy area.. Is there any way to have the removed column header to go back to the control. Maybe I could intercept something somewhere :) and add the column being removed back to the report control. Thank you PS: I am using xtp 9.51. PSS: Сергей, что есть "НТН"? :) |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Wow, sorry, you should have started from the version you're using...
1) This option had an inverse default value previously :) 2) Little bit more details please if possible. Which action causes a removed column return? pps: HTH = Hope that helps ;-) -- WBR , Serge |
|
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 |