search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

onBeforeCellRender

Asked by Vinay
4 years ago.

how to set data in args from json api in onBeforeCellRender

Answer posted by Dan Letecky [DayPilot]
4 years ago.

The onBeforeCellRender implementation must be very fast because it's called for every cell in the grid during scrolling.

I recommend reading all cell data in advance and storing it on the client side. The onBeforeCellRender handler would only read the values from there.

The data can be stored in a global variable, or with resources (if it is resource-specific). See also the following tutorial:
https://code.daypilot.org/93068/javascript-scheduler-displaying-holidays

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.