I have a DomainDataSource and I am binding its Data property to a RadGridView.ItemSource. The grid is on a RadTabItem which is not selected until a user clicks on it.
The DomainDataSource data is loaded when the page loads and the data is in the DomainDataSource.Data property, but the GridView.Items collection is empty until the UI shows the grid ( i.e. user clicks on the tab item containing the grid). Once the user clicks the tab and the grid is shown, it loads the Items collection fine.
How do I force the Items collection of the RadGridView to pick up the data before the user selects the tab item? I need to get to the data through the RadGridView because of information that is in the columns collection.
I tried setting focus and using AutomationPeers to programatically select the tab, but was not successful.
<telerikGrid:RadGridView IsReadOnly="True" AutoGenerateColumns="False" FrozenColumnCount="1" ItemsSource="{Binding ElementName=resultDetailDomainDataSource,Path=Data}"
DataContext="{Binding}" Name="gridDetails" DataLoadMode="Synchronous">
The DomainDataSource data is loaded when the page loads and the data is in the DomainDataSource.Data property, but the GridView.Items collection is empty until the UI shows the grid ( i.e. user clicks on the tab item containing the grid). Once the user clicks the tab and the grid is shown, it loads the Items collection fine.
How do I force the Items collection of the RadGridView to pick up the data before the user selects the tab item? I need to get to the data through the RadGridView because of information that is in the columns collection.
I tried setting focus and using AutomationPeers to programatically select the tab, but was not successful.