TreeListViewRow.ParentRow is null if the parent row is not in the visible area

4 posts, 0 answers
  1. Raghavendar
    Raghavendar avatar
    4 posts
    Member since:
    Jan 2017

    Posted 11 Jan Link to this post

    Hi,

    I understand from this http://www.telerik.com/forums/parentrow-problem that it is an expected beahvior.

    I can't disable virtualization as it leads to performance issues.

    I might have huge tree items in my application and i'm trying the locate the parent row on left arrow key down (the parent item will not be in visible area).

    I cannot get the parent object as this is common behavior implemented in common library.

    Please let me know if there is any other workaround.

  2. Stefan
    Admin
    Stefan avatar
    774 posts

    Posted 16 Jan Link to this post

    Hi Raghavendar,

    Indeed, this would be the expected behavior. As the control utilizes virtualization mechanisms for both its rows and columns, if visual elements are accessed directly, only the ones present in the viewport will be available. Having this in mind, using such approach is highly not recommended. As suggested in the forum thread to which you referred, this parent-child relation must be defined on data level instead.

    Regards,
    Stefan X1
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Raghavendar
    Raghavendar avatar
    4 posts
    Member since:
    Jan 2017

    Posted 18 Jan in reply to Stefan Link to this post

    Hi Stefan,

    Thanks for the update.

    I cannot have this relationship available where the key down event is handled and hence wanted to check for an alternate way.

  4. Stefan
    Admin
    Stefan avatar
    774 posts

    Posted 20 Jan Link to this post

    Hi Raghavendar,

    May I ask you to share some additional details regarding the need to use the KeyDown event of RadTreeListView, so I can try to provide a solution?

    Thank you in advance for your cooperation.

    Regards,
    Stefan X1
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top