I (like several other people in this forum) am trying to customize Scheduler using an ObjectDataSource. I read in another thread that Telerik has decided not to implement a Dataitem property because CustomAttributes makes it obsolete. First of all, I find this a bit confusing, as Dataitem is pretty standard, not only across .Net controls, but also across Telerik controls. The departure from a standard that most people pretty much expect is a strange choice, IMHO. In addition, CustomAttributes actually seems to create (a bit) more coding, as developers have to add the attributes to the customattributenames list, and then access the individual attributes. With Dataitem, I just have to cast the object, and the properties are already there ready to be accessed by name. Again, a bit of a strange (and from my perspective, disappointing) choice, in my opinion.
But to the point- The object list I am binding to has member objects whose properties I need to access on Appointment binding. For example, I have roughly the following:
>Event
>>Person
>>>First Name
>>>Last Name
>>Business
>>>Name
>>>Street
and so on. In order to access the Name property of Business, I assumed (and tried) using Business.Name as a custom attribute name. Then on AppointmentDataBound, I tried to access the value via e.Appointment.Attributes("Business.Name"). From what I have seen in the examples, it seems this ought to work, but for some reason for me it just doesn't. I know the objects exist and have data in their properties- I just can't access them.
I am probably missing something obvious here, but I am just not getting it. Any help is greatly appreciated.
But to the point- The object list I am binding to has member objects whose properties I need to access on Appointment binding. For example, I have roughly the following:
>Event
>>Person
>>>First Name
>>>Last Name
>>Business
>>>Name
>>>Street
and so on. In order to access the Name property of Business, I assumed (and tried) using Business.Name as a custom attribute name. Then on AppointmentDataBound, I tried to access the value via e.Appointment.Attributes("Business.Name"). From what I have seen in the examples, it seems this ought to work, but for some reason for me it just doesn't. I know the objects exist and have data in their properties- I just can't access them.
I am probably missing something obvious here, but I am just not getting it. Any help is greatly appreciated.