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

RadScheduler binding Custom Attributes

2 Answers 320 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mike Bolton
Top achievements
Rank 2
Mike Bolton asked on 24 Jun 2014, 12:06 PM
I'm using the RadScheduler and using a SqlDataSource.
In the page load I'm assigning the basic data to the Scheduler via the RadScheduler1.DataStartField = "r_fieldname" construct.
I'm having difficulty finding where to assign data values to the custom attributes.
In my particular case, I have a fieldname "r_location" that will correspond to the custom attribute "Location".
Where do I assign the value of r_location to Location ?

2 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 26 Jun 2014, 07:43 AM
Hello Mike,

To bind custom attributes to RadScheduler, you have to use the CustomAttributeNames property, explained in the following help article:
http://www.telerik.com/help/aspnet-ajax/scheduler-custom-resources-and-attributes.html

You can also see a live demo of the functionality in the following demo, where a custom Attribute "LastModified" is defined:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/appointment-editing/defaultcs.aspx

Regards,
Bozhidar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mike Bolton
Top achievements
Rank 2
answered on 26 Jun 2014, 04:34 PM
Thank you, Bozhidar. I somehow missed the part where the CustomAttributeNames value corresponds to the field name in the SqlDataSource. Once I used that, it's working fine.  
Tags
Scheduler
Asked by
Mike Bolton
Top achievements
Rank 2
Answers by
Bozhidar
Telerik team
Mike Bolton
Top achievements
Rank 2
Share this question
or