This is a migrated thread and some comments may be shown as answers.

grid view with custom header virtualization problem

11 Answers 145 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 21 Oct 2010, 09:29 AM
Hi, 
I have certain problems using custom header with virtualization. When I am doing horizontal scroll, my headers get messed up (like they are partially painted, and partially left grey).
The problem disappears when I turn the virtualization off, but that is not the solution for me because I need virtualization for the sake of performance.
Can you please help me with that?

11 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 21 Oct 2010, 11:46 AM
Hello DCMS,

 Could you please share some details of your custom header solution? We'll be better equipped to assist you once we know more about your scenario.

Best wishes,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jan
Top achievements
Rank 1
answered on 21 Oct 2010, 04:00 PM
Hello Yavor Georgiev , 
I have created a small demo with our implementation. I am also attaching a picture to demonstrate what happens on our real application.
ticket ID is: 359504
0
Yavor Georgiev
Telerik team
answered on 21 Oct 2010, 04:55 PM
Hello DCMS,

 I'm sorry, but I was unable to replicate the issue when running your application locally with our Q2 SP2 release or our latest Internal Build assemblies. Could you please tell me what version of our controls are you using?

Kind regards,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jan
Top achievements
Rank 1
answered on 22 Oct 2010, 07:44 AM
Hi Yavor Georgiev , 
Oddly enough, I cannot reproduce it on the example too, but on the real application it still exists. It is more complicated on real application though... I have more custom column layouts, there is some logic on the textboxes in the header also (but only on key down, and this behavior happens on scroll, so I excluded that part).
The real problem is that I cannot begin to understand what the problem is.. :S It just happens sometimes, and sometimes it works with no problem, I cannot reproduce it all the time.
Do you have any idea why it behaves this way? Remember, this is only when the virtualization is on...
Thanks :)
0
Jan
Top achievements
Rank 1
answered on 22 Oct 2010, 09:48 AM
Hi Yavor Georgiev , 
I have managed to reproduce the problem on the example too, as you can see in the attached picture. You just have to be really vigorous with the horizontal scroll to achieve it, and also I think it depends on the machine's processing power (maybe :S).
When this happened to me, my cpu usage for both cores was around 95%..
0
Jan
Top achievements
Rank 1
answered on 22 Oct 2010, 09:57 AM
Also, I forgot to mention, I did this using latest internal builds.
0
Yavor Georgiev
Telerik team
answered on 22 Oct 2010, 11:31 AM
Hello DCMS,

 Unfortunately we are still not able to reproduce your problem, even when testing on two machines with a myriad of assemblies (all our public releases since Q2, plus our latest internal build, as well as our Q3 Beta release). Could you please try and reproduce the issue, while making a video of your screen, with Task Manager brought up.

Sincerely yours,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jan
Top achievements
Rank 1
answered on 22 Oct 2010, 02:23 PM
HI Yavor Georgiev , 
Thanks for sticking with me on this issue, your help is greatly appreciated :)
I have added a bit more logic to my example in order to make bit more like the actual application.
ticket ID is: 359864
You can try now to reproduce by clicking on the right-most textbox, and then press and hold left arrow key until you reach the left-most column, and if necessary repeat this a couple of times.The bug usually happens for me on the second run through. If you are still unable to reproduce it, I will record my screen and send it to you.


0
Yavor Georgiev
Telerik team
answered on 25 Oct 2010, 12:16 PM
Hello DCMS,

 Thank you for your new project and instructions. It seems that scrolling when one of the header cell's text boxes is focused makes Silverlight's FocusManager behave inconsistently and thus the header cell ends up with an incorrect clipping. I would suggest to use our Custom Filter Row approach if you'd like to have filtering in such a way,

Greetings,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jan
Top achievements
Rank 1
answered on 26 Nov 2010, 04:18 PM
Hi Yavor , 
You are right, it does seem that when I have focus in header I get this errors, but if I am to use your custom header implementation, wouldn't I get the same problem when scrolling? I do need to support the navigation with key events...

I am trying also to think of a way around it.. like to loose focus when doing ScrollIntoView method, but I haven't had much luck...


:S
0
Yavor Georgiev
Telerik team
answered on 29 Nov 2010, 02:40 PM
Hello DCMS,

 The Custom Filter Row does not use the same approach as the header cells. Please try using it and let me know how it goes.

Regards,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Jan
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Jan
Top achievements
Rank 1
Share this question
or