or
The problem: To switch from one employee to another takes to long time because the creation of the GridRows etc. takes to long. With long I mean for 50 Rows about 500ms on an high end machine.
My assumption is when 1. happens all GridRow instances are destroyed and recreated again in 2.
So here are my questions:
1. Is my assumption correct?
2. If assumption not correct: what else could be the problem?
3. If assumption correct: do you have a suggestion, how i could solve that issue? Is there an easy way to prevent the GridRow instances from disposure? An easy way to cache that instances?
Thanks for your help,
Eugen
public
class
PaneDragBehavior : Behavior<RadPane>
{
protected
override
void
OnAttached()
{
AssociatedObject.PreviewDragEnter += (o, e) =>
{
//do something
};
}
}
<
telerik:RadDocking
AllowUnsafeMode
=
"True"
Name
=
"RadDocking"
Close
=
"RadDockingClose"
PaneStateChange
=
"RadDocking_PaneStateChange"
telerik:AnimationManager.AnimationSelector
=
"{x:Null}"
telerik:AnimationManager.IsAnimationEnabled
=
"False"
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
Name
=
"EncounterDetailsSplitContainer"
>
<
telerik:RadPaneGroup
Name
=
"EncounterDetailsPaneGroup"
>
<
telerik:RadPaneGroup.Items
>
<
telerik:RadPane
Header
=
"Patient Claim"
CanUserClose
=
"False"
ContextMenuTemplate
=
"{x:Null}"
Name
=
"PatientClaimPane"
telerik:RadDocking.SerializationTag
=
"PatientClaimPane"
>
<
telerik:RadPane.Content
>
<
Views:PatientClaimView
x:Name
=
"PatientClaimView"
/>
</
telerik:RadPane.Content
>
<
i:Interaction.Behaviors
>
<
behaviors:PaneDragBehavior
/>
</
i:Interaction.Behaviors
>
</
telerik:RadPane
>
<
telerik:RadPane
Header
=
"Billing Activity"
CanUserClose
=
"False"
ContextMenuTemplate
=
"{x:Null}"
Name
=
"BillingActivityPane"
telerik:RadDocking.SerializationTag
=
"BillingActivityPane"
>
<
Views:BillingActivityView
x:Name
=
"BillingActivityView"
/>
</
telerik:RadPane
>
<
telerik:RadPane
Header
=
"Provider Detail"
CanUserClose
=
"False"
ContextMenuTemplate
=
"{x:Null}"
Name
=
"ProviderDetailPane"
telerik:RadDocking.SerializationTag
=
"ProviderDetailPane"
>
<
Views:ProviderDetailsView
x:Name
=
"ProviderDetailView"
/>
</
telerik:RadPane
>
<
telerik:RadPane
Header
=
"Comments"
CanUserClose
=
"False"
ContextMenuTemplate
=
"{x:Null}"
Name
=
"CommentsPane"
telerik:RadDocking.SerializationTag
=
"CommentsPane"
>
<
Views:CommentsView
x:Name
=
"CommentsView"
/>
</
telerik:RadPane
>
<
telerik:RadDocumentPane
Header
=
"Document Images"
CanUserClose
=
"False"
ContextMenuTemplate
=
"{x:Null}"
Name
=
"DocumentImagePane"
telerik:RadDocking.SerializationTag
=
"DocumentImagePane"
>
<
Views:DocumentImageView
x:Name
=
"DocumentImageView"
/>
</
telerik:RadDocumentPane
>
</
telerik:RadPaneGroup.Items
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
</
telerik:RadDocking
>