This question is locked. New answers and comments are not allowed.
Posted 2 hours ago (permalink)
Hello Telerik community, I have a very simple question which I can't seem to resolve on my own for some reason. When my program used to use telerik RadGridView control, I had this code to expand and collapse my datagrid
but now I am using the TreeListView control in Silverlight 3 on VSTS 2008 SP1. How would I achieve the same effect using a expand/collapse button?
private void expandCollapseButton_Click(object sender, RoutedEventArgs e) { if (this.inputParametersDataGrid.RowDetailsVisibilityMode == Telerik.Windows.Controls.GridView.GridViewRowDetailsVisibilityMode.Visible) { this.inputParametersDataGrid.RowDetailsVisibilityMode = Telerik.Windows.Controls.GridView.GridViewRowDetailsVisibilityMode.Collapsed; } else if (this.inputParametersDataGrid.RowDetailsVisibilityMode == Telerik.Windows.Controls.GridView.GridViewRowDetailsVisibilityMode.Collapsed) { this.inputParametersDataGrid.RowDetailsVisibilityMode = Telerik.Windows.Controls.GridView.GridViewRowDetailsVisibilityMode.Visible; } }