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

Memory Leak when using RadDropDownButton in custom column

4 Answers 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris Jones
Top achievements
Rank 1
Chris Jones asked on 05 Jan 2011, 07:50 PM
We have implemented a custom column used in pretty much all of our RadGridViews, and have found that doing any operation being performed on these grids (ie sorting, filtering) results in massive amounts of memory to be claimed by the browser, but never released.  Eventually, after enough of these operations, the browser will crash due to not being able to allocate enough resources for the next chunk of memory it is trying to use.  After some investigation, I have determined that at least part of the problem stems from the use of a RadDropDownButton being used as the cell content of this column.

I put together a simple test column to test my scenario, and it also exhibits these issues.
public class TestColumn : Telerik.Windows.Controls.GridViewColumn
    {
        public override FrameworkElement CreateCellElement(Telerik.Windows.Controls.GridView.GridViewCell cell, object dataItem)
        {
            //return new Button();
                //return new RadButton();
            return new RadDropDownButton();
        }
    }

As you can see, I am not doing anything fancy within the test column, just returning a new RadDropDownButton as the cell element.  It should also be noted that I also tried this scenario with the standard button in silverlight, and the standard RadButton, and did not encounter this issue, further pointing me in the direction that something is happening related to the RadDropDownButton.

This is Silverlight 4, using WCF Ria V1.0 SP1 Beta, Telerik Controls Q3 2010 (2010.3.1110.1040).  This scenario uses a RadGridView, RadDataPager, populated via Ria DomainDataSource, with filtering and sorting occurring on the server.

Is there anything manually I can do to help dispose of this object, or is there some more underlying problem that would prevent me from doing anything manually?

If there is any more information needed, please let me know.

Thanks,
Chris

4 Answers, 1 is accepted

Sort by
0
Juliana
Top achievements
Rank 1
answered on 31 Mar 2011, 12:23 PM
Hi Chris,
Did you solve the problem?
Juliana
0
Petar Mladenov
Telerik team
answered on 05 Apr 2011, 05:16 PM
Hello Chris and Juliana,

You can vote for this issue here in order to increase its priority. Unfortunately, we cannot provide an estimated time effort for this issue due to more pressing task we are currently working on. Please accept our apologies for the inconvenience caused.

Best wishes,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Juliana
Top achievements
Rank 1
answered on 06 Apr 2011, 07:18 AM
Hi Petar,

Sorry, I didn't get "vote here" meant where?

Juliana
0
Petar Mladenov
Telerik team
answered on 06 Apr 2011, 09:01 AM
Hi Chris Jones,

Please excuse me for not providing the link. It is here.

Regards,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Chris Jones
Top achievements
Rank 1
Answers by
Juliana
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or