How do I pin/unpin "ALL panes at once" from the "Pin icon" in the top right corner of the pane? I appreciate any help anyone can provide.
I need to Pin/UnPin all RadPanes when the pin-button is pressed once on any pane. I've been searching the web, forums, and help tickets for a solution. The zipped solution telerik supplies doesn't work correctly and I see mention of a bug regarding loss of state from last April. I use a toggle button on a radRibbon to handle all panes:
<telerik:RadRibbonToggleButton Name="btnToggleInformationPanes" Text="Toggle Pane" LargeImage="/Drill-IT;component/Resources/Icons/WindowList_64.png" Checked="ToogleInformationPanes_Checked" Unchecked="ToogleInformationPanes_Unchecked" IsAutoSize="True" Size="Large">
private void ToogleInformationPanes_Checked(object sender, RoutedEventArgs e)
{
LeftGroupPane.UnpinAllPanes();
}
private void ToogleInformationPanes_Unchecked(object sender, RoutedEventArgs e)
{
LeftGroupPane.PinAllPanes();
LeftGroupPane.SelectedIndex = 0;
}
But I have been unable to duplicate this action in the Selection changed method. This method gets called multiple times, loses track of the state, and only one pane is pinned/unpinned.
private void LeftGroupPane_SelectionChanged(object sender, RadSelectionChangedEventArgs e)
{
if (btnToggleInformationPanes.IsChecked == true)
{
ToogleInformationPanes_Checked(sender, e);
}
else
{
ToogleInformationPanes_Unchecked(sender, e);
}
}
How do I pin/unpin ALL panes with one click from the "Pin icon" in the top right corner of the pane?
Thanks for your help! I appreciate it!!!
I need to Pin/UnPin all RadPanes when the pin-button is pressed once on any pane. I've been searching the web, forums, and help tickets for a solution. The zipped solution telerik supplies doesn't work correctly and I see mention of a bug regarding loss of state from last April. I use a toggle button on a radRibbon to handle all panes:
<telerik:RadRibbonToggleButton Name="btnToggleInformationPanes" Text="Toggle Pane" LargeImage="/Drill-IT;component/Resources/Icons/WindowList_64.png" Checked="ToogleInformationPanes_Checked" Unchecked="ToogleInformationPanes_Unchecked" IsAutoSize="True" Size="Large">
private void ToogleInformationPanes_Checked(object sender, RoutedEventArgs e)
{
LeftGroupPane.UnpinAllPanes();
}
private void ToogleInformationPanes_Unchecked(object sender, RoutedEventArgs e)
{
LeftGroupPane.PinAllPanes();
LeftGroupPane.SelectedIndex = 0;
}
But I have been unable to duplicate this action in the Selection changed method. This method gets called multiple times, loses track of the state, and only one pane is pinned/unpinned.
private void LeftGroupPane_SelectionChanged(object sender, RadSelectionChangedEventArgs e)
{
if (btnToggleInformationPanes.IsChecked == true)
{
ToogleInformationPanes_Checked(sender, e);
}
else
{
ToogleInformationPanes_Unchecked(sender, e);
}
}
How do I pin/unpin ALL panes with one click from the "Pin icon" in the top right corner of the pane?
Thanks for your help! I appreciate it!!!