This is a migrated thread and some comments may be shown as answers.

[Solved] AppointmentClick and DataItem

2 Answers 393 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Antonin Jelinek
Top achievements
Rank 1
Antonin Jelinek asked on 17 Feb 2009, 09:39 AM
Hello,

is there any specific reason why Appointment object does have underlying DataItem null when accessed in AppontmentClick event? I'd like to use redirect to external edit form (Scheduler one) when appointment is clicked but before redirection I need to read some properties of my object that is mapped to Appointment.

Thanks,

Antonin

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 17 Feb 2009, 09:51 AM
Hello Antonin,

You can use Custom Attributes for any additional data you want to set and read for the appointment object.

Kind regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
towpse
Top achievements
Rank 2
answered on 02 Dec 2009, 08:37 PM
What is the purpose of dataitem?
I need to persist a list of custom objects that are releated to my appointment schedules. I thought I could store them there and have them be associated with the telerik.appointment object so when i double click an existing appointment i can access that collection and grab my list of custom objects that go along with my scheduled appoitnments...

If I set DataItem to something when I return appointmetns to the UI, DataItem is null when I go to edit that appointment that should have a data item...

maybe i use custom attributes?
make a custom attribute for each item in my collection?

Is there any documentation on data item? I did a search for it in the scheduler support and came back with nothing,
Tags
Scheduler
Asked by
Antonin Jelinek
Top achievements
Rank 1
Answers by
Peter
Telerik team
towpse
Top achievements
Rank 2
Share this question
or