I am struggling with the notion of SelectionAnchor which seems to keep some instances even if there are no objects selected. I don't understand how and when they are chosen or released.
Can you tell me how I can release an anchorSelectionItem in code behind?
Thanks
9 Answers, 1 is accepted
We are not aware of any memory leak related to this method. Can you post more info on how to reproduce the problem? Can you reproduce this on some of our WPF demos? More info about your version will be helpful as well.
Regards,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Can you explain it to me? After that I may be able of reproduce it.
Thank you,
Grégoire
What this method does is to set the first, anchor selected item when you are doing a Multiple or Extended selection. Please note that this will be the item available through the SelectedItem property of the RadGridView.
Are you now able to reproduce the Memory Leak?
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thanks to your post I came up with a way to reproduce it. It didn't show the AnchorSelection and it is not an actual memory leak. What it shows is that when you change a grid's ItemsSource while having multiple selected items, one item of the previous ItemsSource is kept in memory by the DetailsProvider until you select a new item in the grid.
That is not a major issue, but it can be annoying if the kept object hold a lot of memory when running a memory consumming routine after going the step described in the first part of this post.
I still don't know why the SelectionAnchor came in the way when I was doing the same thing in my main application.
Regards,
Grégoire
Thank you for clarifying. We were able to reproduce the issue and we are currently investigating it. I have updated your Telerik points for reporting this issue.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I am glad to inform you that we have located the source of the problem and a fix will be available within the next LIB.
We apologize for the inconvenience caused.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
is the memory leak fixed in the latest build?
Yes the fix is available with our latest internal build.
Kind regards,Nik
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.