RadGridView - Relations in VirtualMode

1 Answer 15 Views
GridView
João
Top achievements
Rank 1
Iron
Iron
Iron
João asked on 29 Jan 2025, 03:50 PM

Hey there!

I've been converting several programs that use 'RadGridView' to'VirtualMode' lately, and yesterday I encountered an issue with one that has template relations. I tried a few approaches, but I can't seem to make it work with the same logic I was using before. However, I did manage to get it working with the 'RowSourceNeeded' event, but it requires me to iterate over the same records more times than I'd like.

Is there another way to achieve this, or is this the only available solution?

 

JP

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 31 Jan 2025, 11:27 AM

Hello, João,

If I understand correctly, you use RadGridView and now you are converting it to Virtual mode. It seems that you have defined GridViewRelations in your grid to set up a hierarchy in the grid, please confirm if I understand correctly.

Note, if you need to setup hierarchy when using grid in virtual mode, I would recommend you to use our RadVirtualGrid control. This control is similar to RadGridView but optimized to work with large amounts of data. RadVirtualGrid can display hierarchical data to an arbitrary number of levels. It exposes RowExpanding where you can specify the ColumnCount and RowCount properties of the ChildViewInfo and setup the parent-child relation there. The following article provides step by step tutorial about how to setup hierarchy in RadVirtualGrid: Hierarchical Data - RadVirtualGrid - Telerik UI for WinForms

I hope this information is useful. If you have any other questions, do not hesitate to ask. 

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
João
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or