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

onBeforeCellRender

Asked by Vinay
12 days ago.

how to set data in args from json api in onBeforeCellRender

Answer posted by Dan Letecky [DayPilot]
12 days 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

New Reply
This reply is
Your name (optional):