How do I access CustomAttributeNames on the client ?
I have CustomAttributeNames defined. I would like to get access to these attributes when an appointment is double clicked. How is this done using javascript?
Thanks for any direction,
Stephen Sjostrom
3 Answers, 1 is accepted
0
T. Tsonev
Telerik team
answered on 11 Feb 2008, 08:38 AM
Hi Stephen,
The current version does not support accessing the custom attributes on the client. This functionality will be included in the upcoming service pack (due in about two weeks). In fact it is already done, and we can send you a hotfix, if you open a support ticket.
Here is an example of the API:
var appointment = eventArgs.get_appointment();
var attributeValue = appointment.get_attributes().getAttribute("CustomAttribute1");
I have tried this, but it only returns 'undefined'. I know that attribute is there, because i have it in the CustomAttributeNames property of the control and can access the attribute from code behind (formcreated, appointmentcreated). Any ideas?