DayPilot.Scheduler.afterRender

Declaration

afterRender(data, isCallBack)

Parameters

  • data (object) - custom data sent from the server using Update() method
  • isCallBack (boolean) - true if this is event is called after a CallBack, false if it's called during initial page load or PostBack

Versions

  • api=1

ASP.NET WebForms Example

<DayPilot:DayPilotScheduler 
... 
AfterRenderJavaScript="afterRender(data, isCallBack)" 
/>

<script type="text/javascript">
function afterRender(data, isCallBack) {
  if (isCallBack) {
    alert('Rendering finished (after callback)');
  }
  else {
    alert('Rendering finished (initial or PostBack)');
  }
}
</script>

ASP.NET MVC Example

<%= Html.DayPilotScheduler("dps", new DayPilotSchedulerConfig {
  BackendUrl = ResolveUrl("~/Scheduler/Backend"),
  AfterRenderJavaScript="afterRender(data, isCallBack);"
  ...
%>

<script type="text/javascript">
function afterRender(data, isCallBack) {
  if (isCallBack) {
    alert('Rendering finished (after callback)');
  }
  else {
    alert('Initialization finished');
  }
}
</script>

See Also