RadScheduler binding Custom Attributes

3 posts, 0 answers
  1. Mike Bolton
    Mike Bolton avatar
    5 posts
    Member since:
    Jan 2010

    Posted 24 Jun 2014 Link to this post

    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. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 26 Jun 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mike Bolton
    Mike Bolton avatar
    5 posts
    Member since:
    Jan 2010

    Posted 26 Jun 2014 in reply to Bozhidar Link to this post

    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.  
Back to Top