Programmatically expand/select node in virtualizing tree

9 posts, 1 answers
  1. Ruben Hakopian
    Ruben Hakopian avatar
    37 posts
    Member since:
    Nov 2009

    Posted 20 Jul 2010 Link to this post

    Hi,

    I want to check with you what is the right way to programmatically expand and select a node in a tree view which is using virtualization in recycling mode. The tree may be full of nodes and those nodes may not be visible on the screen at that moment.

    Can you please provide a sample application which demonstrates how to achive that.

    Thank you,
    Ruben.
  2. Answer
    Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 21 Jul 2010 Link to this post

    Hello Ruben Hakopian,

    Attached is a sample project, could you please review it and tell me if it works for you. If you have further questions do not hesitate to ask.

    On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

    Regards,
    Viktor Tsvetkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ruben Hakopian
    Ruben Hakopian avatar
    37 posts
    Member since:
    Nov 2009

    Posted 21 Jul 2010 Link to this post

    Hi Viktor,

    Thanks for the sample. It works as expected.

    However, there is another issue with the treeview when it is using virtualization. 
    When scrolling all the way down and using the mouse wheel even lower, some of the nodes in the tree gets hidden. When you scroll up then appear back again. Did you notice this behaviour before? Also it happens only when virtualization is turned on.

    Thanks,
    Ruben.
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 27 Jul 2010 Link to this post

    Hello Ruben Hakopian,

    Which version of the controls are you using?

    I tried reproducing this with the latest version, my project is attached.

    Possibly there is something that I am missing - can you help me with reproduce this?

    Sincerely yours,
    Miroslav
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. rubenhak
    rubenhak avatar
    58 posts
    Member since:
    Dec 2008

    Posted 27 Jul 2010 Link to this post

    Hi Miroslav,

    I compiled the project you've sent in Visual Studio 2080 with .NET 3.5. This problem is still there. 
    I'm using v. 2010.1.422.35.

    Just scroll all the way down and then use the mouse wheel to scroll even more :) Tried on different
    machines and it happens everywhere. Attached is a screenshot.

    Thank you,
    Ruben.

  7. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 28 Jul 2010 Link to this post

    Hi rubenhak,

    Yes, I confirmed that this bug exist in the 2010.1.422 version.

    It has been fixed for the following official release - would it be possible for you to upgrade?

    Another suggestion is to download the weekly internal build for the Q1 release. Since this is a bug, I expect that the fix will be available there as well.

    Regards,
    Miroslav
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. rubenhak
    rubenhak avatar
    58 posts
    Member since:
    Dec 2008

    Posted 28 Jul 2010 Link to this post

    Hi Miroslav,

    Can you confirm if it is fixed in 2010.2.0714?

    Thank you,
    Ruben.
  9. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 29 Jul 2010 Link to this post

    Hello rubenhak,

    Yes, you can find the same example attached with the 2.0714 dlls.

    Regards,
    Miroslav
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. rubenhak
    rubenhak avatar
    58 posts
    Member since:
    Dec 2008

    Posted 29 Jul 2010 Link to this post

    Thank you!
Back to Top
UI for WPF is Visual Studio 2017 Ready