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

Expand/collapse rows in virtual grid programmatically

3 Answers 61 Views
VirtualGrid
This is a migrated thread and some comments may be shown as answers.
Abins
Top achievements
Rank 1
Abins asked on 27 Feb 2019, 11:21 AM
Is there any way to trigger Expand/collapse events in VirtualGrid programatically?

3 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Feb 2019, 12:14 PM
Hello, Abins,         

RadVirtualGrid provides public API for expanding/collapsing a row by using its index:

int rowIndex = 3;
this.radVirtualGrid1.VirtualGridElement.ExpandRow(rowIndex);
this.radVirtualGrid1.VirtualGridElement.CollapseRow(rowIndex);

I hope this information helps. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Abins
Top achievements
Rank 1
answered on 10 May 2019, 09:33 AM

I used the same. When i collapse a row and expands again, it encounters with error, "Bounds are locked".

 

Any Idea. I am doing this to refresh the childrows when new items are added to the list which is binded.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 10 May 2019, 01:38 PM
Hello, Abins,     

I was unable to reproduce any errors on my end. That is why I have attached my sample project for your reference. Please have a look at it. Am I missing something? Could you please specify the exact steps how to reproduce the problem? Once we replicate the issue locally, we would be able to make an adequate analysis of the precise case and assist you further. Thank you in advance.

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
VirtualGrid
Asked by
Abins
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Abins
Top achievements
Rank 1
Share this question
or