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

Major Issues with controls repainting

3 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
jerry
Top achievements
Rank 1
jerry asked on 17 Mar 2010, 04:17 PM
I have a gridview with 2 command buttons when I click a button on a row it changes to orange.  When I click another button on a different row it changes to orange but the first row doesn't change colors it stays orange instead of going back to blue.

I have the same types of issues with listboxes and I'm guessing the mouseover event.  It will highlight with a lighter orange then the select orange but it looks like all the rows are highlighted.

This is a MAJOR issue to my application which is close to being released.  I never noticed it like this till recently.  Please tell me there is a way around this.


Thank You

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 23 Mar 2010, 10:24 AM

Hi Jerry, 

Thank you for contacting us and for reporting this issue.

This issue is known issue and, as it comes out, very hard to reproduce. We have set up special environment here in order to track down this case, but we are still unable to reproduce it. It seems that this issue is somehow related to the fact that we use GDI based animations. Moreover, we have empirically estimated that if you update your video adapter's driver, it is highly probable that the undesired behavior stops. In general, it will be very difficult for us to determine the reason for this without being able to reproduce and debug it. We also believe that this might be a problem related to GDI and RDP, and the way the RDP transfers painting information - in other words, the only way you can prevent this from happening is to turn of the animations in our controls (which is pretty simple).

We will be very grateful if you manage to help us research the case and hopefully come to any conclusion. For example, I would like to ask you to try turning of the Bitmap Cache we use when painting gradients and see whether the issue persists (very important case):

Me.RadGridView1.Behavior.BitmapRepository.DisableBitmapCache = True

After doing this, if the issue persists, you will be able to overcome it by turning off the animations for all controls:

ThemeResolutionService.AllowAnimations = False

or the animations for a separate control:

Me.RadGridView1.ElementTree.SuspendAnimations()

Please write back when you have experimented with the scenarios described above letting us know which of them is helpful.

Thank for your time.

Kind regards,
Deyan
the Telerik team

0
jerry
Top achievements
Rank 1
answered on 23 Mar 2010, 01:46 PM
Deyan,
Should the code you posted go in the load or initialize events?

Thank You
0
Deyan
Telerik team
answered on 24 Mar 2010, 03:10 PM
Hi jerry,

 You can put these code snippets in the Form's constructor after the InitializeComponent method call or in the OnLoad event of the form.

Thanks for your time.

Regards,
Deyan
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.
Tags
General Discussions
Asked by
jerry
Top achievements
Rank 1
Answers by
Deyan
Telerik team
jerry
Top achievements
Rank 1
Share this question
or