Hello
I have an application that uses RadDocking with tabbed RadPanes containing RadGridViews. It appears that the default behaviour of RadDocking is to lazy load the contents and data of a pane only when the tab is selected - so the data in my RadGridViews is only loaded when a tab is brought into view.
So, in this example the DataLoaded event for FirstGrid will fire on startup as FirstTab is the pane in view. The Dataloaded event for SecondGrid will only fire when the user selects SecondTab and brings it into view:
<
telerik:RadDocking
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
x:Name
=
"FirstTab"
Title
=
"First"
>
<
telerik:RadGridView
x:Name
=
"FirstGrid"
ItemsSource
=
"{Binding Items}"
AutoGenerateColumns
=
"True"
DataLoaded
=
"FirstGrid_DataLoaded"
/>
</
telerik:RadPane
>
<
telerik:RadPane
x:Name
=
"SecondTab"
Title
=
"Second"
>
<
telerik:RadGridView
x:Name
=
"SecondGrid"
ItemsSource
=
"{Binding Items}"
AutoGenerateColumns
=
"True"
DataLoaded
=
"SecondGrid_DataLoaded"
/>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadDocking.DocumentHost
>
</
telerik:RadDocking
>
Whilst I can see the benefit of this behaviour, my application has a requirement to ensure that all the data is loaded at startup - partly for performance purposes, but also for another reason.
Is there a way to override the default behaviour and force the contents of all the tabs to load on startup?
Thanks for any help
Dave