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

How Can I Change the Display Order of the RadScheduler Appointment in MonthView

3 Answers 147 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
HOW
Top achievements
Rank 1
HOW asked on 12 Oct 2011, 09:10 AM
Hi Guys,

I have a requirement to display the order of the appointment in MonthView based on my own defined "Category" attribute.
Take of example, Cat A will displayed first follow by Cat B.
I have tried using AppointmentComparer but it does not seem to work in MonthView.
I am using Telerik version 2011.1.315.40.
How can I achieve this?

Thanks and appreciate for the help.

3 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 14 Oct 2011, 03:47 PM
Hello How,

Take a look at the attached sample page. It shows how to sort the appointments based on their attribute which in this case is "Category".

Hope this helps.

Kind regards,
Ivana
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
0
Phani
Top achievements
Rank 1
answered on 11 Dec 2013, 12:00 AM
Hello Ivana,

This is exactly what I did but it did not give me the desired result. May be I am doing something wrong.
In Page_Load I have these lines
              If Not IsPostBack Then
                    BindData()
End If
radScheduler.AppointmentComparer = New CustomAppointmentComparer()

My radScheduler is bound by a DataTable like this from the above BindData function:
radScheduler.DataSource = dt 'datatable with 5 columns ID,SUbject,Begindate,enddate,companylocation
radScheduler.DataBind()
In mark up I have this for radscheduler
    
CustomAttributeNames="CompanyLocation,AppointmentInformation" EnableCustomAttributeEditing="true"

Instead of Category I used CompanyLocation. What is wrong with this code?Am i missing something? Please let me know.
0
Plamen
Telerik team
answered on 16 Dec 2013, 12:01 PM
Hi,

Here is a forum thread where is shared the solution of the issue that worked for Phani.

Regards,
Plamen
Telerik
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 the blog feed now.
Tags
Scheduler
Asked by
HOW
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Phani
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or