![]()  | 
 
Issue in Expand/collapse rows in Report Control | 
 
    Post Reply  
   | 
  
| Author | |
   
   KumarCJ  
   
   Groupie  
   Joined: 02 April 2007 Location: India Status: Offline Points: 96  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Issue in Expand/collapse rows in Report ControlPosted: 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  | 
 |
![]()  | 
 |
   
   KumarCJ  
   
   Groupie  
   Joined: 02 April 2007 Location: India Status: Offline Points: 96  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
   
   KumarCJ  
   
   Groupie  
   Joined: 02 April 2007 Location: India Status: Offline Points: 96  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
   
   ABuenger  
   
   Newbie  
    
   Joined: 02 February 2006 Status: Offline Points: 1075  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 13 July 2011 at 9:48pm | 
 
| 
   
    
   Hi, 
   
  I'm working on this issue. Andre  | 
 |
| 
   
     
     Codejock support
     
   
   | 
 |
![]()  | 
 |
   
   KumarCJ  
   
   Groupie  
   Joined: 02 April 2007 Location: India Status: Offline Points: 96  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
   
   KumarCJ  
   
   Groupie  
   Joined: 02 April 2007 Location: India Status: Offline Points: 96  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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
     
   
   | 
 |
![]()  | 
 |
   
   KumarCJ  
   
   Groupie  
   Joined: 02 April 2007 Location: India Status: Offline Points: 96  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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
     
   
   | 
 |
![]()  | 
 |
    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  |