Hi,
I am having issues with memory leaks linked to the following Telerik controls: RadMenu, RadDropDownButton, RadButtonGroup.
If any of these controls are used in a RadWindow, when the window is closed the instance cannot be garbage collected. If I remove the mentioned controls from the window garbage collection occurs as expected.
I was advised that some of these issues were resolved in Telerik 2010 Q2, but I am running Q3 and still have the issue?
XAML Example:
Can someone please advice how I can workaround/resolve these issues.
Regards,
Chris
I am having issues with memory leaks linked to the following Telerik controls: RadMenu, RadDropDownButton, RadButtonGroup.
If any of these controls are used in a RadWindow, when the window is closed the instance cannot be garbage collected. If I remove the mentioned controls from the window garbage collection occurs as expected.
I was advised that some of these issues were resolved in Telerik 2010 Q2, but I am running Q3 and still have the issue?
XAML Example:
<
telerik:RadButtonGroup
x:Name
=
"ActionButtons"
Margin
=
"0"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Left"
Opacity
=
"0.5"
Height
=
"26"
>
<
telerik:RadRibbonDropDownButton
x:Name
=
"ddlExport"
Size
=
"Medium"
SmallImage
=
"/Insurer.Analytics.SharedResources;component/Icons/export1.png"
ToolTipService.ToolTip
=
"{Binding Path=StringResources.Export, Source={StaticResource LocalizedResources }}"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Height
=
"25"
Width
=
"40"
>
<
telerik:RadRibbonDropDownButton.DropDownContent
>
<
telerikNavigation:RadContextMenu
>
<
local:KeyAwareMenuItem
Header
=
"{Binding Path=StringResources.ExportExcel, Source={StaticResource LocalizedResources }}"
IconTemplate
=
"{StaticResource MenuIcon}"
Icon
=
"/Insurer.Analytics.SharedResources;component/Icons/excel.png"
Command
=
"{Binding ExportCommand, Converter={StaticResource WeakCommandBindingConverter}}"
CommandParameter
=
"Excel"
/>
<
local:KeyAwareMenuItem
Header
=
"{Binding Path=StringResources.ExportCsv, Source={StaticResource LocalizedResources }}"
IconTemplate
=
"{StaticResource MenuIcon}"
Icon
=
"/Insurer.Analytics.SharedResources;component/Icons/csv.png"
Command
=
"{Binding ExportCommand, Converter={StaticResource WeakCommandBindingConverter}}"
CommandParameter
=
"CSV"
/>
</
telerikNavigation:RadContextMenu
>
</
telerik:RadRibbonDropDownButton.DropDownContent
>
</
telerik:RadRibbonDropDownButton
>
<
telerik:RadRibbonDropDownButton
x:Name
=
"ddlGridLines"
Size
=
"Medium"
SmallImage
=
"/Insurer.Analytics.SharedResources;component/Icons/table.png"
ToolTipService.ToolTip
=
"Gridlines"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Height
=
"25"
Width
=
"40"
>
<
telerik:RadRibbonDropDownButton.DropDownContent
>
<
telerikNavigation:RadContextMenu
>
<
telerikNavigation:RadMenuItem
x:Name
=
"gridLinesBoth"
IsCheckable
=
"True"
IsChecked
=
"True"
Command
=
"{Binding GridLinesCommand, Converter={StaticResource WeakCommandBindingConverter}}"
CommandParameter
=
"Both"
>
<
telerikNavigation:RadMenuItem.Header
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Insurer.Analytics.SharedResources;component/Icons/table.png"
Margin
=
"0,0,5,0"
></
Image
>
<
TextBlock
Text
=
"{Binding Path=StringResources.Both, Source={StaticResource LocalizedResources }}"
></
TextBlock
>
</
StackPanel
>
</
telerikNavigation:RadMenuItem.Header
>
</
telerikNavigation:RadMenuItem
>
<
telerikNavigation:RadMenuItem
x:Name
=
"gridLinesHorizontal"
IsCheckable
=
"True"
Command
=
"{Binding GridLinesCommand, Converter={StaticResource WeakCommandBindingConverter}}"
CommandParameter
=
"Horizontal"
>
<
telerikNavigation:RadMenuItem.Header
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Insurer.Analytics.SharedResources;component/Icons/lines-horizontal.png"
Margin
=
"0,0,5,0"
></
Image
>
<
TextBlock
Text
=
"{Binding Path=StringResources.Horizontal, Source={StaticResource LocalizedResources }}"
></
TextBlock
>
</
StackPanel
>
</
telerikNavigation:RadMenuItem.Header
>
</
telerikNavigation:RadMenuItem
>
<
telerikNavigation:RadMenuItem
x:Name
=
"gridLinesVertical"
IsCheckable
=
"True"
Command
=
"{Binding GridLinesCommand, Converter={StaticResource WeakCommandBindingConverter}}"
CommandParameter
=
"Vertical"
>
<
telerikNavigation:RadMenuItem.Header
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Insurer.Analytics.SharedResources;component/Icons/lines-vertical.png"
Margin
=
"0,0,5,0"
></
Image
>
<
TextBlock
Text
=
"{Binding Path=StringResources.Vertical, Source={StaticResource LocalizedResources }}"
></
TextBlock
>
</
StackPanel
>
</
telerikNavigation:RadMenuItem.Header
>
</
telerikNavigation:RadMenuItem
>
<
telerikNavigation:RadMenuItem
x:Name
=
"gridLinesNone"
IsCheckable
=
"True"
Command
=
"{Binding GridLinesCommand, Converter={StaticResource WeakCommandBindingConverter}}"
CommandParameter
=
"None"
>
<
telerikNavigation:RadMenuItem.Header
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Insurer.Analytics.SharedResources;component/Icons/lines-none.png"
Margin
=
"0,0,5,0"
></
Image
>
<
TextBlock
Text
=
"{Binding Path=StringResources.None, Source={StaticResource LocalizedResources }}"
></
TextBlock
>
</
StackPanel
>
</
telerikNavigation:RadMenuItem.Header
>
</
telerikNavigation:RadMenuItem
>
</
telerikNavigation:RadContextMenu
>
</
telerik:RadRibbonDropDownButton.DropDownContent
>
</
telerik:RadRibbonDropDownButton
>
<
telerik:RadRibbonDropDownButton
x:Name
=
"ddlShow"
Size
=
"Medium"
SmallImage
=
"/Insurer.Analytics.SharedResources;component/Icons/preferences.png"
ToolTipService.ToolTip
=
"Show"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Height
=
"25"
Width
=
"40"
>
<
telerik:RadRibbonDropDownButton.DropDownContent
>
<
telerikNavigation:RadContextMenu
>
<
telerikNavigation:RadMenuItem
x:Name
=
"filterToggle"
IsCheckable
=
"True"
IsChecked
=
"True"
Checked
=
"filterToggle_Checked"
Unchecked
=
"filterToggle_Unchecked"
>
<
telerikNavigation:RadMenuItem.Header
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Insurer.Analytics.SharedResources;component/Icons/funnel.png"
Margin
=
"0,0,5,0"
></
Image
>
<
TextBlock
Text
=
"Filters"
></
TextBlock
>
</
StackPanel
>
</
telerikNavigation:RadMenuItem.Header
>
</
telerikNavigation:RadMenuItem
>
<
telerikNavigation:RadMenuItem
x:Name
=
"groupingToggle"
IsCheckable
=
"True"
IsChecked
=
"False"
Checked
=
"groupingToggle_Checked"
Unchecked
=
"groupingToggle_Unchecked"
>
<
telerikNavigation:RadMenuItem.Header
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Insurer.Analytics.SharedResources;component/Icons/elements1.png"
Margin
=
"0,0,5,0"
></
Image
>
<
TextBlock
Text
=
"Grouping"
></
TextBlock
>
</
StackPanel
>
</
telerikNavigation:RadMenuItem.Header
>
</
telerikNavigation:RadMenuItem
>
</
telerikNavigation:RadContextMenu
>
</
telerik:RadRibbonDropDownButton.DropDownContent
>
</
telerik:RadRibbonDropDownButton
>
</
telerik:RadButtonGroup
>
Can someone please advice how I can workaround/resolve these issues.
Regards,
Chris