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

How to use Custom Fields in Scheduler

3 Answers 277 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Otto
Top achievements
Rank 1
Otto asked on 27 Mar 2010, 07:50 PM
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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 29 Mar 2010, 04:10 PM
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.
0
Nicolaï
Top achievements
Rank 2
answered on 05 Oct 2011, 10:19 AM
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..!
0
Peter
Telerik team
answered on 07 Oct 2011, 12:08 PM
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
Tags
Scheduler
Asked by
Otto
Top achievements
Rank 1
Answers by
Peter
Telerik team
Nicolaï
Top achievements
Rank 2
Share this question
or