This is a migrated thread and some comments may be shown as answers.

Pin/UnPin All RadPanes with one click

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 31 Dec 2014, 04:54 PM
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!!!

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 05 Jan 2015, 11:37 AM
Hello Richard,

As we see that you have posted about the same scenario in another thread, could we continue the discussion there.

Regards,
Vladi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or