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

Add Columnb/Attributes

Asked by Dennis
11 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?

Thanks!

Best regards
Dennis

Answer posted by Dan Letecky [DayPilot]
11 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).

DataTagFields="field1"
Comment posted by Dennis
11 years ago.

Thanks,
it works fine!

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