Issue in Expand/collapse rows in Report Control
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=18641
Printed Date: 05 May 2024 at 10:58am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Issue in Expand/collapse rows in Report Control
Posted By: KumarCJ
Subject: Issue in Expand/collapse rows in Report Control
Date Posted: 11 July 2011 at 1:21am
Hi Codejock Team,
We are using "Virtual Report Control" in our application and need to have functionality (Expand/collapse rows).
We are referring sample project "Xtreme ToolkitPro v15.0.2\Samples\ReportControl\VirtualList"
I tried using below piece of code to Expand/collapse rows BUT unable to Collapse the expanded row in sample program
.H afx_msg void OnReportRowExpandChanged(NMHDR * pNotifyStruct, LRESULT * /*result*/);
.CPP ON_NOTIFY(XTP_NM_REPORT_ROWEXPANDED, XTP_ID_REPORT_CONTROL, OnReportRowExpandChanged)
void CVirtualListView::OnReportRowExpandChanged(NMHDR * pNotifyStruct, LRESULT * /*result*/)
{ XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct; CXTPReportSelectedRows* pSelectedRows = GetReportCtrl().GetSelectedRows(); if (!pSelectedRows) return;
CXTPReportRow* pRow = NULL; CXTPReportRow* pParent = NULL; int nCount = pSelectedRows->GetCount(); for (int i = nCount - 1; i >= 0; i--) { pRow = pSelectedRows->GetAt(i); pParent = pRow->GetParentRow(); if (pParent && pParent->IsGroupRow()) pParent->SetExpanded(!pParent->IsExpanded()); else if (pRow->IsGroupRow()) pRow->SetExpanded(!pRow->IsExpanded()); ............. ............. ............. }
When clicking on Minus(-) button on Report control do not Collapse the row -- Please see the attached screenshot "Report Control Expand-Collapse Issue.JPG"
Any idea why Expand/Collapse of row not happening in sample program?
Thanks in advance! Saket Kumar
|
Replies:
Posted By: KumarCJ
Date Posted: 12 July 2011 at 7:08am
Anybody has any idea why
Expand/Collapse causes problem in sample program "Xtreme ToolkitPro v15.0.2\Samples\ReportControl\VirtualList"?
CXTPReportRow* pRow = pSelectedRows->GetAt(i); [Taken from above post]
While debugging found that even though the first row has child but the value shows that 1st row do not have child "m_pChilds" has below value
(*pRow).m_pChilds = 0x00000000
Any comments and help is appreciated !!!
Thanks, Saket
|
Posted By: KumarCJ
Date Posted: 13 July 2011 at 4:15am
I do not know why we are not getting any kind of response /comments on this issue either on Codejock forum or on Codejock official support site (Issue Track)
Is there any solution for "Expand/Collapse" of row in virtual report control. or for Codejock sample program "Virtual List sample"
if "YES" then please let us know how we can achieve it ? if "NO" then also please let us know your comments !
We stuck with this problem ! This is critical for our project
Hope this time we will get some response /comments on this issue from Codejock team !
Thanks in advance ! Saket
|
Posted By: ABuenger
Date Posted: 13 July 2011 at 9:48pm
Hi,
I'm working on this issue.
Andre
------------- Codejock support
|
Posted By: KumarCJ
Date Posted: 14 July 2011 at 1:19am
Hello Andre,
Your comment on this issue is appreciated !!!
When you resolve the issue please do not forgot to let us know, so that we can use the patch file from you and move ahead.
-- Saket
|
Posted By: KumarCJ
Date Posted: 30 September 2011 at 6:33am
Hello Andre,
Is this issue is fixed, if yes then please send us the supported by file
Thanks, Saket kumar
------------- -- Saket Kumar
|
Posted By: KumarCJ
Date Posted: 03 October 2011 at 3:16am
Hello Andre,
Please update us on this issue !
If this issue is fixed, then please send us the supported by file !
Thanks, Saket kumar
------------- -- Saket Kumar
|
|