![]() |
Grid view with style, 4 to 5 times slower |
Post Reply
|
| Author | |
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Topic: Grid view with style, 4 to 5 times slowerPosted: 12 October 2009 at 7:29am |
|
Hello CJ Team
I am using grid control(third party tool). I had 17k records to display in the grid. Without setting any style to the application it was taking few sec. but when I set any style to the application, It become 4 to 5 times slower. Please help me. Thanks in advance. -Mak |
|
![]() |
|
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 October 2009 at 2:35am |
|
Observed the call stack with style and without style
-- For skin CJ having extra function call: CXTPSkinManagerApiHook::OnHookCallWindowProcA(..) With this function call to next functions in the stack are taking extra time in execution, almost double (VC6 Profiler shows the difference). Ultimately it will affect the performance of the grid/application. May this will helpful to sort out problem. -Mak |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 October 2009 at 4:29am |
|
Hello,
Do you mean slower "load time" only ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Source
Senior Member
Joined: 19 June 2006 Status: Offline Points: 103 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 October 2009 at 4:40am |
|
Can you tell what grid is it?
|
|
|
Product: Xtreme SuitePro (ActiveX) version 13.1.0
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 |
|
![]() |
|
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 October 2009 at 2:27am |
|
Grid is an control to display the records, it contain column and rows.
|
|
![]() |
|
Source
Senior Member
Joined: 19 June 2006 Status: Offline Points: 103 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 October 2009 at 5:00am |
|
Among other things a grid control is what you described.
Thanks for clarify it. What I mean was: What is the name of the grid control, what company developed it? |
|
|
Product: Xtreme SuitePro (ActiveX) version 13.1.0
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 |
|
![]() |
|
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 October 2009 at 6:02am |
|
ok, It was Stingray grid...
but I don't think so ti was grid control problem. as we can reproduce this in CJ sample application too.. with the ListBox (Adding 10K items it that). -Mak |
|
![]() |
|
prashant
Senior Member
Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 December 2009 at 12:28am |
|
There is one function available with CJ to disable each time hooking activity.
|
|
![]() |
|
feffe
Groupie
Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 January 2010 at 6:26am |
|
I've the same problem... (I use Stingray too),
prashant, can you explain me better your post?
|
|
![]() |
|
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 January 2010 at 6:59am |
|
Hi Feffe
With style: CJ style hook is trying to set/draw the scroll position. We are using SetRedraw(..) function to tell whether we want to draw the grid or not, but no use. In Stingray grid they provided function called LockUpdate(BOOL) instead of SetRedraw(..). So before SetRedraw(..) function we need to set the grid LockUpdate(BOOL) to avoid the drawing calls. I tried it and it is working fine.. Hope this will solve your problem... -- Makarand |
|
![]() |
|
feffe
Groupie
Joined: 04 September 2009 Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 January 2010 at 7:02am |
|
Thank you!
I'm using Stingray object views and my problem is especially in context menu: they
appear very slowly.
Have you ever had this problem?
Do you think I can apply your method for finding a solution?
|
|
![]() |
|
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 January 2010 at 7:06am |
|
My Problem with the loading data itself it was taking time.. so that I was skip the drawing part while loading the data by using LockUpdate(BOOL)... As per context menu consurn I don't think It is useful to your case..
|
|
![]() |
|
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 |