Hi,
I have problems to use RadRichTextBox (with UI) in child window because every time when child window is opened, it's uses more and more memory.
I did a very simple project where I'm using the radRichtextbox with deafult UI settings (Word prosessor) and also here I notice the same. in first time when I open the dialog with Rad components, memory grows to 110Mb => ok, but when I close the dialog and opening it again, memory grows to 120-130 and growing more every time when I close and opening the dialog .
GC.Collect does not help.
I'm using following code to open child window
and like I said, dialog does ot include any additonal code, just default RadRichTextbox control with UI
Any suggestion what I can do to handle this issue?
I'm using RadRichTextBox version 2012.1.326.40
Regards,
Auvo
I have problems to use RadRichTextBox (with UI) in child window because every time when child window is opened, it's uses more and more memory.
I did a very simple project where I'm using the radRichtextbox with deafult UI settings (Word prosessor) and also here I notice the same. in first time when I open the dialog with Rad components, memory grows to 110Mb => ok, but when I close the dialog and opening it again, memory grows to 120-130 and growing more every time when I close and opening the dialog .
GC.Collect does not help.
I'm using following code to open child window
MyDialog md = new MyDialog();
md.ShowDialog();
and like I said, dialog does ot include any additonal code, just default RadRichTextbox control with UI
Any suggestion what I can do to handle this issue?
I'm using RadRichTextBox version 2012.1.326.40
Regards,
Auvo
6 Answers, 1 is accepted
0
Hello Auvo,
Iva Toteva
the Telerik team
Thank you for reporting this issue. We will look into it and will try to fix it in an internal build soon or the next official release at latest.
We have updated your Telerik points in appreciation of your involvement.
Iva Toteva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Robert
Top achievements
Rank 1
answered on 14 Jun 2012, 12:19 PM
Same here. It becomes very laggy after some time.
0
Robert
Top achievements
Rank 1
answered on 14 Jun 2012, 02:36 PM
Ok well it seems like my issue was because of the XamlDataProvider.
It seems a lot more stable now I have removed the above. I will post back if I find it to be something else.
<
telerikXaml:XamlDataProvider
Name
=
"xamlDP"
RichTextBox
=
"{Binding ElementName=radRichTextBox}"
Grid.Column
=
"1"
/>
<
TextBox
Name
=
"textBox"
Margin
=
"10"
TextWrapping
=
"Wrap"
AcceptsReturn
=
"True"
IsReadOnly
=
"True"
Text
=
"{Binding ElementName=xamlDP, Path=Xaml, Mode=TwoWay}"
Grid.Column
=
"1"
>
<
TextBox.Effect
>
<
DropShadowEffect
ShadowDepth
=
"10"
Color
=
"Gray"
Opacity
=
".4"
Direction
=
"320"
RenderingBias
=
"Performance"
/>
</
TextBox.Effect
>
</
TextBox
>-->
It seems a lot more stable now I have removed the above. I will post back if I find it to be something else.
0
Hi Robert,
Have you managed to resolve your problem? We can try to help you if you provide us more information about the problematic case.
Greetings,
Boby
the Telerik team
Have you managed to resolve your problem? We can try to help you if you provide us more information about the problematic case.
Greetings,
Boby
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Robert
Top achievements
Rank 1
answered on 19 Jun 2012, 09:38 AM
Hi,
Thanks for getting back to me. I have submitted a support ticket for this issue including a code sample. The issue goes away providing I remove the xaml data provider.
Thanks for getting back to me. I have submitted a support ticket for this issue including a code sample. The issue goes away providing I remove the xaml data provider.
0
Hi Rob,
Thank you for the attached project in your support ticket. It helped us a lot to investigate the issues you have encountered.
About the lagging, it is due to the fact that the document is exported on every change in its content. We would recommend that you update the string (the Text of the TextBox) more rarely. This can be done in two ways using the UpdateSourceTrigger property of the data provider:
Kind regards,
Vasil
the Telerik team
Thank you for the attached project in your support ticket. It helped us a lot to investigate the issues you have encountered.
About the lagging, it is due to the fact that the document is exported on every change in its content. We would recommend that you update the string (the Text of the TextBox) more rarely. This can be done in two ways using the UpdateSourceTrigger property of the data provider:
- You can set the UpdateSourceTrigger to "Lost Focus". In this way, the document will be exported only when the rich text box loses focus.
<
telerikXaml:XamlDataProvider
Name
=
"xamlDP"
RichTextBox
=
"{Binding ElementName=radRichTextBox}"
UpdateSourceTrigger
=
"LostFocus"
Grid.Column
=
"1"
/>
- If your project requires that the text of the TextBox must be updated periodically, you can also set the UpdateSourceTrigger to "Explicit" and update it periodically (e.g. using Timer) in code-behind like this:
this
.xamlDP.UpdateString();
I hope this helps. Don't hesitate to contact us if you have other questions.
Kind regards,
Vasil
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>