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

Memory Leak on setting Item

1 Answer 44 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
John Harrison
Top achievements
Rank 1
John Harrison asked on 11 Nov 2014, 10:35 AM
Hi,

We are setting the property grids Item property to our view model object.

It seems something is not been freed correctly internally as we see an increase of memory everytime we bind to a new instance of our view model.

pseudo code:

create view model object

OnSelectionChanged(....)
{
   var Data = new OurViewModel(...).

   PropertyGrid.Item = null
   PropertyGrid.Item= Data
}

I read a similar issue with the WPF control here

Is there a way for us to loop through the PropertyDefinitions and unbind the datasource/context and resolve this issue?

Kind Regards

1 Answer, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 13 Nov 2014, 11:05 AM
Hello John,

I tried to reproduce the problem using the provided details but I was not able to. Please open a support ticket and send a simple runnable project demonstrating the issues.



Regards,
Vera
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PropertyGrid
Asked by
John Harrison
Top achievements
Rank 1
Answers by
Vera
Telerik team
Share this question
or