BestFitColumns and async data

3 posts, 1 answers
  1. Luis
    Luis avatar
    35 posts
    Member since:
    Aug 2009

    Posted 19 Dec 2018 Link to this post

    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. Answer
    Hristo
    Admin
    Hristo avatar
    1520 posts

    Posted 20 Dec 2018 Link to this post

    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.
  3. Luis
    Luis avatar
    35 posts
    Member since:
    Aug 2009

    Posted 20 Dec 2018 in reply to Hristo Link to this post

    Thanks Hristo.
Back to Top