Print Page | Close Window

Pre loading items

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=4679
Printed Date: 30 April 2025 at 12:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pre loading items
Posted By: rdeboer
Subject: Pre loading items
Date Posted: 28 July 2006 at 7:33pm

In my program I load a lot of items into the reportcontrol, let's say 15.000 rows.

To prevent long waiting time I populate the control every 1000 records:
 
    If t Mod 1000 = 0 Then
        frmArticles.ArticlesControl.Populate
    end if
 
While the reportControl still loads additional items, I browse the visible items, scroll down in the list and click items.
 
But every time the ReportControl.Populate command is issued, it jumps back to the top of the list.
 
Is there a solution or workaround for this?
 
 



Replies:
Posted By: sserge
Date Posted: 30 July 2006 at 7:50pm
You can handle this in a following way:
- catch SelectionChanged event;
- focused row changes, and you store a Record of this row (ReportControl.FocusedRow.Record);
- after repopulating use: Set pRow = wndReportControl.Rows.FindRow pStoredRecord
- and select this row as focused: wndReportControl.FocusedRow = pRow

--
WBR,
Serge



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