Print Page | Close Window

[SOLVED] Identify the row that already has data?

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=18223
Printed Date: 29 September 2024 at 3:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Identify the row that already has data?
Posted By: Makarand
Subject: [SOLVED] Identify the row that already has data?
Date Posted: 14 April 2011 at 9:40am
Hello CJ Team,

I am implementing CJ Report control in our application, for that I am referring "VirtualList" sample. In that sample application method GetItemMetrics(..) get the data for each column and row and always get called to paint the cell.

I included GetItemMetrics(..) method it is working fine with the small amount of data but in case of large data it is getting slow due to calling GetItemMetrics(..) for each row even I activate the window.

In simple way, once I set the value for "pItemMetrics->strText" for 1 to 50 rows (those are visible) I don't want set it each and every time even I activate the window. What is the way where I can ensure that the data has already been loaded for the respective row in function GetItemMetrics(..) ?

Thanks,
-Mak  


-------------
-Mak



Replies:
Posted By: ABuenger
Date Posted: 14 April 2011 at 10:11am
GetItemMetrics() is called everytime the report control is being painted. In virtual mode the report control doesn't hold or cache any data. GetItemMetrics() is also only called for visible rows.

If the window is deactivated the report control loses the focus, so it needs to be redrawn. Same if the window becomes actived again.


Andre



-------------
Codejock support



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