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

BestFitColumns and async data

2 Answers 87 Views
VirtualGrid
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 19 Dec 2018, 07:37 PM

Hi, I'm having trouble solving a problem.

To guarantee a better user experience I need to call the BestFitColumns method, but the data to be presented in the grid comes from an asynchronous method which ends up generating unexpected and random results.

Is there an event occurring immediately after CellValueNeeded that I can call BestFitColumns or in that case would it be better to simply access the data in a synchronous way?

I tried PageChanged and ValueChanged events, but to no avail.

 

Thank you.

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 20 Dec 2018, 02:33 PM
Hello Luis,

Thank you for writing.

There is no built-in event firing immediately after the CellValueNeeded event. You can consider executing the best-fit logic after the asynchronous operation to fetch the data. 

Regards,
Hristo
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
Luis
Top achievements
Rank 1
answered on 20 Dec 2018, 02:42 PM
Thanks Hristo.
Tags
VirtualGrid
Asked by
Luis
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Luis
Top achievements
Rank 1
Share this question
or