How to use Custom Fields in Scheduler

4 posts, 1 answers
  1. Otto
    Otto avatar
    6 posts
    Member since:
    Sep 2008

    Posted 27 Mar 2010 Link to this post

    Hello,
    I need to edit (and to view) some custom fields - for example: "location" or Priority. Priority should be a dropdown (the datasource should be an enum ( enum priority = {low, middle, hight}) location should be a string. 

    I've experimented with RadSchedulerWebForm.aspx and RadSchedulerWebFormAdcancedForm.ascx. I was'nt very successful 

    What is the right way to get the data from aspx to my database - and back.

    greetings,
    otto
    does not explain how to use with AdvancedEditTemplate

    And I would like to use the AdvanvedEditTemplate

    Update: works fine.
  2. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 29 Mar 2010 Link to this post

    Hi Otto,

    For 'location' you should use custom attributes. Simply set CustomAttributeNames="Location" EnableCustomAttributeEditing="true" for RadScheduler and make sure that 'Location' is an existing field in your RadScheduler data source.

    For 'Priority', I recommend you use Resources. For example, see the Defining Resources and open the advanced form. You will see the RadComboBox controls for the 'Room' and 'User' resource.

    If these are your only requirements, then you do not need to use the advanced templates. If you need to display something else in the advanced form, then you can refer to this demo and contact us if you have further questions.


    All the best,
    Peter
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Nicolaï
    Nicolaï avatar
    160 posts
    Member since:
    Apr 2008

    Posted 05 Oct 2011 Link to this post

    Wow, so simple.
    This should be added to the demos, somehow. (=CustomAttributeNames="Location" EnableCustomAttributeEditing="true" )
    I was stuck thinking I had to use templates, but this simple forum answer got me going again..!
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 07 Oct 2011 Link to this post

    Hi Nicolaï,

    Thank you! That's the kind of feedback we like to hear as it will help us improve the documentation.

    Best Wishes, Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top