Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Issue in Expand/collapse rows in Report Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Issue in Expand/collapse rows in Report Control

 Post Reply Post Reply
Author
Message
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post Topic: Issue in Expand/collapse rows in Report Control
    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
Back to Top
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2011 at 9:48pm
Hi,

I'm working on this issue.

Andre

Codejock support
Back to Top
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.184 seconds.