Hello,
We've been having performance issues and I narrowed it down to the simplest case that reproduces the issue. I simply created a new silverlight 4 project (+web project associated to it) and:
- added reference to Telerik.Windows.Controls
- added the code below to the MainPage.xaml file
- added "<param name="windowless" value="true" />" to the silverlight object in the aspx page, on the web project
When running in Chrome, there's huge performance issues when trying to type in the textbox (try to hold a key down to repeat it, for example). I also noticed one of the cores of my CPU going haywire (close to 100%) whenever I kept a key down. It also happens when it gains focus, etc.
From what I could figure out, the issue is with the JavaScript generated by the RadHtmlPlaceholder on LayoutUpdate, recalculating sizes and whatnot for each of the controls. Also, the less RadHtmlPlaceholders there are, the less noticeable the delay gets.
So, the question obviously is, how can I fix this? I should not that due to the complex application structure, I cannon remove all the RadHtmlPlaceholders to have a single one (where the performance hit would be less noticeable).
MainPage.xaml:
We've been having performance issues and I narrowed it down to the simplest case that reproduces the issue. I simply created a new silverlight 4 project (+web project associated to it) and:
- added reference to Telerik.Windows.Controls
- added the code below to the MainPage.xaml file
- added "<param name="windowless" value="true" />" to the silverlight object in the aspx page, on the web project
When running in Chrome, there's huge performance issues when trying to type in the textbox (try to hold a key down to repeat it, for example). I also noticed one of the cores of my CPU going haywire (close to 100%) whenever I kept a key down. It also happens when it gains focus, etc.
From what I could figure out, the issue is with the JavaScript generated by the RadHtmlPlaceholder on LayoutUpdate, recalculating sizes and whatnot for each of the controls. Also, the less RadHtmlPlaceholders there are, the less noticeable the delay gets.
So, the question obviously is, how can I fix this? I should not that due to the complex application structure, I cannon remove all the RadHtmlPlaceholders to have a single one (where the performance hit would be less noticeable).
MainPage.xaml:
<
UserControl
x:Class
=
"TelerikTest.MainPage"
xmlns:telerik
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
StackPanel
>
<
TextBox
BorderBrush
=
"Blue"
BorderThickness
=
"3"
Width
=
"100"
/>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
<
telerik:RadHtmlPlaceholder
/>
</
Grid
>
</
StackPanel
>
</
UserControl
>