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

Data virtualization done event

3 Answers 70 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.
Tobias
Top achievements
Rank 1
Tobias asked on 12 Jul 2012, 06:28 AM
Hi Telerik-team,
I just want to now, whether a data virtualizing done/completed event exists.
Let me explain the situation.
I've got a GridView, which itemsource is binded to an observableCollection.
The GridView has four columns (with Auto, *, Auto, Auto) to fill the GridViews total space. This works fine so far, but if I manually resize the width of one column, I receive a side effect, that all columnwidth are affected.
As a workaround I had the idea, to set the *-column to a fix pixel value (the current actualwidth). But this will only work, when all virtualization is done.
Can you help me with this?
Best regards
Tobias

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Jul 2012, 06:32 AM
Hello,

 There is no data-virtualization in RadGridView by default - only when you use our virtual collection.
Are you referring to the UI virtualization?

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Tobias
Top achievements
Rank 1
answered on 12 Jul 2012, 06:52 AM
Hi Vlad,
thank you for your quick answer.
No, I am not using virtual collection. I have thought that it might be a virtualization issue, because there is a delay between the GridViews DataLoaded event fired and the data displayed on the screen.
Best regards,
Tobias
0
Vlad
Telerik team
answered on 12 Jul 2012, 07:17 AM
Hello Tobias,

 Generally the UI in both WPF and Silverlight is asynchronous and it is very hard to find what will be last event called since almost everything inside the application can invalidate UI. You can check this article for more info about Silverlight components lifecycle:
http://blogs.msdn.com/b/devdave/archive/2008/10/11/control-lifecycle.aspx 

You can try LayoutUpdated event in your case however be careful since you can easily get famous "Layout cycle detected" exception. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Tobias
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Tobias
Top achievements
Rank 1
Share this question
or