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

RADPANEL FLICKERING ON PAGE LOAD.

7 Answers 374 Views
GridView
This is a migrated thread and some comments may be shown as answers.
RAGHAVENDRA
Top achievements
Rank 1
RAGHAVENDRA asked on 15 Jan 2011, 03:31 PM
Hi all,
I am using radpanel's and not rad panel bars on my windows forms.  Problem is that there is a lot of flickering going on when the page loads. Its very annoying to the user atleast. I can see the controls being loaded and stuff on page load. I am using Q3 SP 2010. Do we have any fix to this?? I googled and found out that there might be problems wiht double buffering and stuff. ? Are we supposed to do anything like that. Any help on this would be great. 
Thanks

7 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 15 Jan 2011, 05:35 PM
Hello,

Can you give a little more detail. from what I can tell, you have a RadGridView inside a RadPanel on a form. Is that correct?
Let me know and I'll do my best to help
thanks
Richard
0
RAGHAVENDRA
Top achievements
Rank 1
answered on 16 Jan 2011, 04:17 PM
Hi Richard,

We have multiple table layout panels in a radpanel on a windows form. When the page loads we can see all the paint job being done which should have been behind the scenes. So what I did was to change the back ground color of the table layout panels form Transparent to Some other color. In my case I changed it to white. This seemed to take away atleast 70 percent of my problem.  Now it looks like the page is loading faster and when we change the tabs on the page its almost instantaneous. Earlier we could see the paint being done and stuff.

Is there any thing else I am supposed to do to completely avoid this flickering. When i say flickering what happens is that when you try to record some thing on a Computer using ur mobile camera you can see black and white stripes rolling. This flickering is not that worse but still before the page first comes up we see that behavior.

Thanks a lot!!!
0
Richard Slade
Top achievements
Rank 2
answered on 16 Jan 2011, 05:05 PM
Hello,

There are a few things that one can do to help with flicker. RadForms have DoubleBuffering set to true by default.
You can also call
Application.DoEvents()
in various places to ensure that messages are pumped through at that time

Also have a look at my anwser in this forum thread which may also help you.

If none of these help, please post a sample that will replicate the issue and I'll be happy to take a look at it for you

thanks
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 16 Jan 2011, 05:09 PM
Hi again,

I've just re-read the last section of your post. Do you mean that you only get flicker when you record a video of your application via a mobile phone?
If that's the case, then this is not a RadControls issue. You will nearly always get this (try recording something from your TV with a mobile video camera). This is due to the refresh rate.
Richard
0
RAGHAVENDRA
Top achievements
Rank 1
answered on 16 Jan 2011, 08:32 PM
No Richard,
Not recording my application using a mobile.. but  i wanted you to get a feel of how the flickering is.. i did not know how to better explain it .. but i am going through your solution and will let you know if something works out. 
0
Richard Slade
Top achievements
Rank 2
answered on 16 Jan 2011, 08:34 PM
Ok, look forward to hearing the result.
Regards,
Richard
0
Accepted
Nikolay
Telerik team
answered on 17 Jan 2011, 10:18 AM
Hello guys,

Richard, thank you for your assistance.

Raghavendra, the flickering issue that you experience is due to the usage of the TableLayoutPanels in your application. Indeed, to improve the behavior of the panels, you can set their BackColor to a value different than Transparent. For additional information, please refer to this article.

Greetings,
Nikolay
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
RAGHAVENDRA
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
RAGHAVENDRA
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or