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

RadScheduler - DataSubjectField multiple binds - LinQ

1 Answer 140 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
mSchmidt
Top achievements
Rank 1
mSchmidt asked on 18 Jul 2008, 01:04 PM
Hi

Iam trying to bind some data to a RadSchedueler, my problem however is that i would like multiple information to be shown, starttime, end time, comment and type

First i tried using LinQ to retrieve the information however it cannot format the information correctly while also Concattinating the strings.

DataClasses1DataContext db = new DataClasses1DataContext();
var q = from v in db.vagtPlans
where v.start < v.slut
select new { v.vagt_dato, v.start, v.slut, kommentar = String.Concat(v.start.Value.ToShortTimeString(),v.kommentar) };
this.RadScheduler1.DataSource = q;
this.RadScheduler1.Rebind();

Then i were optimisting and thought maybe i could do it in the DataSubjectField, not possible.

DataClasses1DataContext db = new DataClasses1DataContext();
var q = from v in db.vagtPlans
where v.start < v.slut
select new { v.vagt_dato, v.start, v.slut, kommentar = v.kommentar };
this.RadScheduler1.DataSubjectField = "start + slut";
this.RadScheduler1.DataSourceID = null;
this.RadScheduler1.DataSource = q;
this.RadScheduler1.Rebind();

How do i do this, is there somewhere where i can change what the Scheduler renders as subject or ?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Jul 2008, 09:03 AM
Hi mSchmidt,

I suggest you use templates to change the way appointments are rendered in RadScheduler. You can check our online example here.

Kind regards,
Yana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
mSchmidt
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or