Removing columns very slow

11 posts, 0 answers
  1. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 15 Jan 2012 Link to this post

    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

     

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 16 Jan 2012 Link to this post

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

  3. DevCraft banner
  4. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 16 Jan 2012 Link to this post

    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

  5. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 17 Jan 2012 Link to this post

    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
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 18 Jan 2012 Link to this post

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

  7. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 20 Jan 2012 Link to this post

    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
  8. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 21 Jan 2012 Link to this post

    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
  9. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 24 Jan 2012 Link to this post

    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
  10. Hristo
    Admin
    Hristo avatar
    408 posts

    Posted 25 Jan 2012 Link to this post

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

  11. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 25 Jan 2012 Link to this post

    Hello Hristo,

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

    Greetings,
    Nicolas
  12. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 30 Jan 2012 Link to this post

    Deleting the ColumnGroups BEFORE the columns itselves solved the issue.
    Thank you Telerik for your support!
Back to Top
DevCraft banner