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

Add Columnb/Attributes

Asked by Dennis
9 years ago.

Hi @all,

I wanted to know, how to add some more datafields do DayPilot-Scheduler. Standard is eventsatrt, eventend, name, id, resource_id. It would be nice to add her some custom fields. is it possible? How?


Best regards

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

In BeforeEventRender event handler, you can reach the original data item using e.DataItem property:

e.DataItem["field1"]  // field1
e.DataItem.Source  // the original object

e.DataItem is accessible automatically.

In addition, you can specify custom fields using DataTagFields property. These fields will be accessible through the full event lifecycle, i.e. in BeforeEventRender, on the client side (e.g. EventClickJavaScript) and in the server-side event handlers (EventClick).

Comment posted by Dennis
9 years ago.

it works fine!

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