Iterate Items in VirtualQueryableCollectionView after load completed

0 Answers 100 Views
Data Virtualization GridView
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Kamran asked on 28 May 2022, 07:02 AM

In Gridview collection, once collection is loaded from data source, we evaluate some conditions, that depends on previous records. Such that if previous record and current record has same Owner Id, then hide signature of current record i.e. IsVisible=false; else make it visible. 

e.g.

index 0:     {OwnerId = 123, IsVisible=True}        // Index 0 is always true

index 1:      {OnwerId = 123, IsVisible = false}    // Index 1 Owner Id == Index 0 Owner Id

index 2:     {OwnerId = 456, IsVisible = true}   // index 2 Owner id != index 1 Owner Id

Index 3:     {OwnerId = 567,  IsVisible = true}

Index 4:   {OwnerId = 567, IsVisible =  false}

Before using VirtualQueryableCollectionView, we can easily iterate collection, but as VirtualQueryableCollectionView is loading items on demand, therefore I need to iterate collection on each load.

If I implement such evaluation in ItemsLoading or ItemsLoaded event, It hurts performance. I want suitable place, where itemsLoading is completed, new collection is rendered in gridview and then I can iterate collection.

Is it possible in VirtualQueryableCollectionView. Is it right way to handle such situation. What can be alternative.

 

Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
commented on 04 Jun 2022, 06:32 AM

Dear team

Any comments on above issue?

Stenly
Telerik team
commented on 08 Jun 2022, 08:08 PM

I will review the provided information and get back to you by the end of the week.
Stenly
Telerik team
commented on 15 Jun 2022, 01:49 PM

Would it be possible to create a sample project that gets as close as possible to the scenario present on your side? Doing this will allow me to debug it on my end and provide information based on it.

No answers yet. Maybe you can help?

Tags
Data Virtualization GridView
Asked by
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Share this question
or