Hi
Iam trying to bind a RadScheduler to a Linq datasource, i got everything working but all appointments after a specific date simply dont show up.
I tried debugging and the var q below here includes information about these appointment, however they show up in none of the RadSchedluer Views.
Iam trying to bind a RadScheduler to a Linq datasource, i got everything working but all appointments after a specific date simply dont show up.
I tried debugging and the var q below here includes information about these appointment, however they show up in none of the RadSchedluer Views.
protected void RadScheduler1_DataBinding(object sender, EventArgs e) |
{ |
FlexyNet.Data.FlexyBookLocalDataContext db = new FlexyNet.Data.FlexyBookLocalDataContext(Connections.CurrentCenterConnectionString); |
var q = from v in db.vagtPlans |
orderby v.start |
where v.start < v.slut && v.personale_db.personale_custID == fUser.CustID && v.start >= RadScheduler1.VisibleRangeStart && v.slut <= RadScheduler1.VisibleRangeEnd |
select new { v.vagt_id, v.start, v.slut, kommentar = v.kommentar }; |
this.Label1.Text = q.ToString(); |
this.RadScheduler1.DataKeyField = "vagt_id"; |
this.RadScheduler1.DataEndField = "slut"; |
this.RadScheduler1.DataStartField = "start"; |
this.RadScheduler1.DataSubjectField = "kommentar"; |
this.RadScheduler1.DataSource= q; |
this.RadScheduler1.Rebind(); |
} |
Does the RadScheduler it self only select the appointments within the visible range or do i have to do it as above to optimize speed ?