hi,
we are using the daypilot calendar for ASP.NET MVC.
We want to transfer some additional data like a caption for the calendar to the client.
i saw, that the callbackdata will be used when fireing the onAfterRender-Event, so i extend the data in the CalendarBackend. Our Action looks like this:
Public Function CalendarBackend(ByVal CalendarId As Integer, ActiveAppointmentId As Integer) As ActionResult
Dim dpc As New DayPilotCalendar(CalendarId, ActiveAppointmentId)
Dim result = dpc.CallBack(Me)
CType(result, JsonResult).Data("CallBackData") = Json(New With {.headerCaption = "Calendarcaption"})
Return result
End Function
I think, this is not the recommended way, but in the onAfterRender i can use it. Is there a better way to get extra-data? i dont know if the parameter will be deleted in future-versions.