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

4 posts, 0 answers
  1. HOW
    HOW avatar
    1 posts
    Member since:
    Jun 2011

    Posted 12 Oct 2011 Link to this post

    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.

  2. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 14 Oct 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Phani
    Phani avatar
    19 posts
    Member since:
    Dec 2013

    Posted 10 Dec 2013 Link to this post

    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.
  5. Plamen
    Admin
    Plamen avatar
    2730 posts

    Posted 16 Dec 2013 Link to this post

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