Pin/UnPin All RadPanes with one click

2 posts, 0 answers
  1. Richard
    Richard avatar
    11 posts
    Member since:
    Jul 2014

    Posted 31 Dec 2014 Link to this post

    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!!!
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 05 Jan 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top