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

[Solved] How does one access CustomAttribute Names

3 Answers 247 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Stephen Sjostrom
Top achievements
Rank 1
Stephen Sjostrom asked on 08 Feb 2008, 11:40 PM
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

Sort by
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"); 


Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jim
Top achievements
Rank 1
answered on 18 Apr 2008, 06:51 PM
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?
0
Jim
Top achievements
Rank 1
answered on 19 Apr 2008, 03:06 PM
I figured out the problem.  I was using "Type" as a Custom Attribute, but that was not working, so I used "AptType" and it worked like a charm.
Tags
Scheduler
Asked by
Stephen Sjostrom
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Jim
Top achievements
Rank 1
Share this question
or