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

Removing columns very slow

10 Answers 156 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
AKROS
Top achievements
Rank 1
AKROS asked on 15 Jan 2012, 05:56 PM

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

Sort by
0
Vlad
Telerik team
answered on 16 Jan 2012, 08:26 AM
Hello,

 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 >>

0
AKROS
Top achievements
Rank 1
answered on 16 Jan 2012, 10:21 PM
Hi Vlad,

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

0
AKROS
Top achievements
Rank 1
answered on 17 Jan 2012, 08:44 PM
Hi again Vlad,

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
0
Vlad
Telerik team
answered on 18 Jan 2012, 08:28 AM
Hi,

 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 >>

0
AKROS
Top achievements
Rank 1
answered on 20 Jan 2012, 09:31 AM
Hello Vlad,

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
0
AKROS
Top achievements
Rank 1
answered on 21 Jan 2012, 03:37 PM
Hi Vlad,

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
0
AKROS
Top achievements
Rank 1
answered on 24 Jan 2012, 03:06 PM
Hello ?!!?!??

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
0
Hristo
Telerik team
answered on 25 Jan 2012, 02:55 PM
Hi,

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 >>

0
AKROS
Top achievements
Rank 1
answered on 25 Jan 2012, 06:56 PM
Hello Hristo,

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

Greetings,
Nicolas
0
AKROS
Top achievements
Rank 1
answered on 30 Jan 2012, 08:35 PM
Deleting the ColumnGroups BEFORE the columns itselves solved the issue.
Thank you Telerik for your support!
Tags
TreeListView
Asked by
AKROS
Top achievements
Rank 1
Answers by
Vlad
Telerik team
AKROS
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or