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

Disable Autorefresh on RadPane

2 Answers 134 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 15 Sep 2016, 09:18 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 19 Sep 2016, 09:46 AM
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.
0
Dario Concilio
Top achievements
Rank 2
answered on 19 Sep 2016, 10:54 AM
Thank you for your response!
Tags
Docking
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Nasko
Telerik team
Dario Concilio
Top achievements
Rank 2
Share this question
or