Disable Autorefresh on RadPane

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

    Posted 15 Sep 2016 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 avatar
    699 posts

    Posted 19 Sep 2016 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 Header="Pane1">
                <telerik:RadGridView x:Name="gridView"
                                ItemsSource="{Binding Clubs}"/>

    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.

    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. Dario Concilio
    Dario Concilio avatar
    172 posts
    Member since:
    Apr 2016

    Posted 19 Sep 2016 in reply to Nasko Link to this post

    Thank you for your response!
Back to Top