Hello,
I've got a RadTreeListView with three columns declared in my XAML.
Dynamically, I'm creating some other columns (usually between 100 and 200).
When my user interface is refreshed by the user (click on a button), I need to remove the dynamically created columns and recreate the RadTreeListView with the new settings. I'm doing that like this:
this.treeListView.Columns.RemoveItems(this._dynamicColumns);
This line of code needs approximately 1 minute to execute ! Could you please provide a workaround so that it’s much faster? Like suspending the user interface refresh during removing or something like that…
Thanks in advance.
Greetings,
Nicolas
10 Answers, 1 is accepted
This can happen only if the treelist is measured with infinity height and all UI containers for data items are created at once. Please check our documentation for more info!
Kind regards,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Thanks for the reply and for the link.
My Tree is defined like this:
<StackPanel x:Name="LayoutRoot">
<telerik:RadTreeListView x:Name="treeListView" ... >
</telerik:RadTreeListView>
</StackPanel>
I tried to modify it like this, but it didn't help:
<StackPanel x:Name="LayoutRoot" Height="700" Width="1000">
<telerik:RadTreeListView x:Name="treeListView" ... >
</telerik:RadTreeListView>
</StackPanel>
Note that I'm using the latest internal build and that I'm having ColumnGroups.
Could you please provide more information ?
Greetings,
Nicolas

I just noticed that removing the ColumnGroups solved the problem.
So this is probably a bug in the current internal build. Could you fix it?
Thanks in advance :)
Best Regards,
Nicolas
Please open support ticket and send us your project where we can reproduce and debug this.
Regards,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Sorry for the late response, I'm very busy these days...
I will try to create a small demo project that reproduces the problem this evening or tomorrow.
Greetings,
Nicolas

I've prepared a small demo project for you that shows this bug, but I cannot submit it.
"We are sorry, but your support package is not active."
How can I send you the project?
Greetings,
Nicolas

Something else: with the latest internal build I'm facing many problems with columns group. My code generates null pointer exception (it was working without any problems with the previous internal build).
Cheers,
Nicolas
I have extended your trial license with a week and now you can open a support ticket and attach your project there.
Kind regards,
Hristo
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Thanks a lot for the trial extension.
I've uploaded my project. The ticket id is 505157.
Greetings,
Nicolas

Thank you Telerik for your support!