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

GridView Scrolling Issue

2 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
TSRG - IT
Top achievements
Rank 1
TSRG - IT asked on 07 Jan 2010, 06:50 AM
Hi guys,

I have grid where the number of columns are determined at run-time and hence created dynamically, these columns are bound to a binding list of custom business objects. I've set up an event handler for the list ie.

    ListChangedEventHandler(

object sender, ListChangedEventArgs e) now, say when the window is not maximised and not all the columns are visible, when I scroll horizontally the ListChangedEventHandler will get called for some of the non-visible columns as they come into view. Is there a way I can avoid this as I am using this event to check for a PropertyChanged which calls another function to update a database - which could prove to be inefficient if the app is trying to update the database everytime a user scrolls.

Thanks for your help.

Tim.

 

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Jan 2010, 02:07 PM
Hi Tim,

Can you please try to set EnableColumnVirtualization to false to see what will be the result in your case?

Regards,
Vlad
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
TSRG - IT
Top achievements
Rank 1
answered on 13 Jan 2010, 02:23 AM
Thanks that seems to do the trick.
Tags
GridView
Asked by
TSRG - IT
Top achievements
Rank 1
Answers by
Vlad
Telerik team
TSRG - IT
Top achievements
Rank 1
Share this question
or