[SOLVED] Identify the row that already has data? |
Post Reply |
Author | |
Makarand
Senior Member Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
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
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
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
|
|
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 |