Hello,
I have problem with performance of GridView in self referencing hierarchy mode. I am working on move up/down function to move specific row up or down. I need to move it also in my underlying list, so I move it first in my list and then clear BindingList for GridView and add new items. This is done in DoRefreshEditorItems method of TestParEditorCollection class:
private void DoRefreshEditorItems()
{
EditorItems.Clear();
maxGridId = 0;
foreach (var item in Items)
{
var editorItem = new TestParEditorItem(item, ++maxGridId);
EditorItems.Add(editorItem);
if (item.HasSubItems)
AttachSubItems(editorItem);
}
RenumberRows();
}
Each call to EditorItems.Add() takes cca 100ms and whole refresh of 20 rows takes cca 2s. It looks like this:
I also tried to set DataSource to null, refresh binding list and set DataSource back, but it looks very similar. I have attached test project, it's TelerikTestReal project in solution.