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

RAD Scheduler Databinding

2 Answers 236 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Archan
Top achievements
Rank 1
Archan asked on 11 Sep 2008, 09:23 AM
hi

I am trying use RAD Scheduler and exploring on it ..
I have some queries ...

Is there any way to bind dataset to the RAD Scheduler control ?
One more thing I don not need the delete button on the Appointments,Please let me know how to do it....

My appointment titles are big. How to show them fully ?

I want the the appointment titles to be hyperlinks so that if user clicks on it, it will open a new page with the details of the appointments..

The queries may be basic but please help me out

Thanks in Advance
Archan

2 Answers, 1 is accepted

Sort by
0
Archan
Top achievements
Rank 1
answered on 12 Sep 2008, 06:59 AM
hi

I was able to solve some of the queries.But still I have some...

1. How to make the Appointment title(DataSubject Field) hyperlink and after clicking that I want to open a new page with details.

2. Can I have two fields from my dataset in the dataSubject field.
0
Simon
Telerik team
answered on 15 Sep 2008, 10:49 AM
Hello Archan,

You can implement the first requirement by defining an Appointment Template, where the Subject of the Appointment is displayed as a hyperlink pointing to a 'Details' page, like this (the general approach is shown here):

<AppointmentTemplate> 
    <div class="rsCustomAppointmentContainer"
        <href='Details.aspx?appID=<%# Eval ("ID") %>'><%# Eval("Subject") %></a
    </div> 
</AppointmentTemplate> 

As for the second requirement, RadScheduler does not support binding to several data columns via its interface. However, you can achieve the desired effect by selecting those columns into a single 'Subject' field. Provided that the Scheduler is configured with DataSubjectField="Subject", it will display the concatenated columns. For example consider this SELECT command:

SELECT [ID], [Subject] + ': ' + ISNULL([Annotations], 'No Annotations'AS [Subject], [Start], [End], [UserID], [RoomID], [RecurrenceRule], [RecurrenceParentID], [Annotations] FROM [Appointments] 

Appointments will display "Subject: [Annotations]" and "Subject: No Annotations" in case there isn't an Annotations entry for the respective Appointment.

All the best,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Archan
Top achievements
Rank 1
Answers by
Archan
Top achievements
Rank 1
Simon
Telerik team
Share this question
or