Disable Autorefresh on RadPane

3 posts, 1 answers
  1. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 15 Sep Link to this post

    Hi to all,

    I create a docking, when add new usercontrol, I insert a new RadPane that contains the usercontrol selected, ok.

    After I add other one usercontrol, docking activates my last usercontrol, ok.

    In my 2nd usercontrol I have gridview, apply filter by filtersearch.

    Click on 1st usercontrol (first radpaneheader),

    after that, click again on 2nd, my filter is cleared, and gridview reload all data.

    Can I disable this behavior?

     

     

  2. Answer
    Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 19 Sep Link to this post

    Hi Dario,

    The observed by you behavior is caused by the fact that the PaneGroup is reloading its content each time the selection is changed - for example, when you select a tab item its Content is loaded in the visual tree. So, in order to alter this and achieve the desired by you behavior we suggest you to set the IsContentPreserved property of RadPaneGroup to True:
    ...
    <telerik:RadPaneGroup IsContentPreserved="True">
        <telerik:RadPane Header="Pane2">
     <!--...-->
        </telerik:RadPane>
        <telerik:RadPane Header="Pane1">
                <telerik:RadGridView x:Name="gridView"
                                ShowSearchPanel="True"
                                ItemsSource="{Binding Clubs}"/>
                                 
        </telerik:RadPane>
    </telerik:RadPaneGroup>
    ...

    If that does not help you please, provide us some additional information about your scenario. Providing a XAML of the Docking and GridView controls will also be of great help

    We hope this will help you.

    Regards,
    Nasko
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 19 Sep in reply to Nasko Link to this post

    Thank you for your response!
Back to Top