I have a silverlight page. The main page has the gridview, with a tab control in the GridViewToggleRowDetailsColumn. It has an exposed property called RequestId. I have a second xaml in the same project, which is the content of the first tab in the Tab Control. This was done just like in your Telerik.Windows.Examples.GridView.FirstLook.Example.
First I tried using the GridView SelectionChanged event to look at the row and set the RequestId value. The problem with that is that clicking directly on the toggle in the row doesn't select the row. It just opens up the toggle, showing the TabControl. If I select the row first, then click on the toggle, it works. Problem is that I cannot implement it that way.
So, I went hunting for other events on the GridView to find one that always triggers before it instantiates my Tab Content xaml. I tried all of these and none of them executed at the time I need.
RowIsExpandedChanged
RowIsExpandedChanging
RowDetailsVisibilityChanging
GroupRowIsExpandedChanged
GroupRowIsExpandedChanging
What I really need is an event that is going to trigger, when the person clicks on the toggle in the row in the GridView that triggers one time before it opens the Tab Control, populating it with my xaml file content. Once I am in the event, I need to get the row in the grid where the toggle button was clicked, in order to get that RequestId value.
I have gone through the documentation, the sample project, and the forums looking for something I can use, but I can't find anything. I assume this is a common thing that people do, so I must be missing something along the way.
I did find the way to make it so only one row is expanded at once, using the RowDetailsVisibilityChanged event, which is good.
First I tried using the GridView SelectionChanged event to look at the row and set the RequestId value. The problem with that is that clicking directly on the toggle in the row doesn't select the row. It just opens up the toggle, showing the TabControl. If I select the row first, then click on the toggle, it works. Problem is that I cannot implement it that way.
So, I went hunting for other events on the GridView to find one that always triggers before it instantiates my Tab Content xaml. I tried all of these and none of them executed at the time I need.
RowIsExpandedChanged
RowIsExpandedChanging
RowDetailsVisibilityChanging
GroupRowIsExpandedChanged
GroupRowIsExpandedChanging
What I really need is an event that is going to trigger, when the person clicks on the toggle in the row in the GridView that triggers one time before it opens the Tab Control, populating it with my xaml file content. Once I am in the event, I need to get the row in the grid where the toggle button was clicked, in order to get that RequestId value.
I have gone through the documentation, the sample project, and the forums looking for something I can use, but I can't find anything. I assume this is a common thing that people do, so I must be missing something along the way.
I did find the way to make it so only one row is expanded at once, using the RowDetailsVisibilityChanged event, which is good.