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

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

3 Answers 116 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Raghavendar
Top achievements
Rank 1
Raghavendar asked on 11 Jan 2017, 02:22 PM

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.

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Jan 2017, 08:56 AM
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.
0
Raghavendar
Top achievements
Rank 1
answered on 18 Jan 2017, 06:46 AM

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.

0
Stefan
Telerik team
answered on 20 Jan 2017, 05:20 PM
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.
Tags
TreeListView
Asked by
Raghavendar
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Raghavendar
Top achievements
Rank 1
Share this question
or