I have a RadGridView that is sitting inside a RadPanelBar. When I add data to the GridView, I want to make sure all the rows are selected with SelectAll(). This works fine as long as the RadPanelBar has been expanded at least once, but when the application first starts up, the GridView is hidden and the call to SelectAll() does not work I'm assuming this is due to the fact that the grid is not instantiated yet since the XAML has not been hit.
What is the proper way to be able to interact with a RadGridView (or any control for that matter) that sits within a PanelBar or an Expander? I'd like to be able to interact with the control whether it is visible or not.
As a side note, I thought I could just use the DataLoaded event to make sure that each time new data made it to the Grid, I could call SelectAll() since I want every row selected when new data is being entered. However, this does not work for me since when clicking a column heading to sort, the DataLoaded event gets fired again. I just need to know the proper way to interact with a control that may or may not have been visible prior to calling methods on it.
Thanks,
-Scott
What is the proper way to be able to interact with a RadGridView (or any control for that matter) that sits within a PanelBar or an Expander? I'd like to be able to interact with the control whether it is visible or not.
As a side note, I thought I could just use the DataLoaded event to make sure that each time new data made it to the Grid, I could call SelectAll() since I want every row selected when new data is being entered. However, this does not work for me since when clicking a column heading to sort, the DataLoaded event gets fired again. I just need to know the proper way to interact with a control that may or may not have been visible prior to calling methods on it.
Thanks,
-Scott