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

[Solved] Using Scroll clears CheckBox style in GridView

2 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andriy Mudriy
Top achievements
Rank 1
Andriy Mudriy asked on 15 Jan 2010, 02:00 PM
Hi guys,
I have some problem with gridview cells when I use scroll.
Step to reproduce:
I change IsEnabled property in RowLoaded  e.Row.Cells["FirstColumn"] .IsEnabled = false;

After that I use scroll in grid to navigate everywhere in my grid I see that there are property (IsEnabled = false) for allmost all rows (or some rows)  in "FirstColumn" in my grid. And this property chanches very magic for rows in this column (FirstColumn).
 
Could you clarify if for me and give me some advices about it.

Thanks in advance.


PS
I attach you can see that allmost all chackboxes with IsEnabled = false; but my code don't do it.

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 20 Jan 2010, 09:44 AM
Hello Andriy Mudriy,

Can you please paste the code and the relevant XAML. I will try to reproduce the issue  here and find what is the trouble. As you may know for performance reasons when scrolling  RadGridView  reuses cells and rows  to minimize memory usage and maximize performance I believe this may be part of the trouble.

Greetings,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Andriy Mudriy
Top achievements
Rank 1
answered on 20 Jan 2010, 10:32 AM
To Pavel Pavlov

Thanks a lot for helping.
I have found solution on forum.
We need to set 

EnableRowVirtualization

 

="False"
Thanks.

 

Tags
GridView
Asked by
Andriy Mudriy
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Andriy Mudriy
Top achievements
Rank 1
Share this question
or