Last post Oct 09, 2012 03:06 AM by Mikesdotnetting
None
0 Points
1 Post
Oct 09, 2012 02:02 AM|hunterxh|LINK
I'm trying to load aspxScheduler from sql server on code behind, but my scheduler only display in 5 second (?) . This is my simple code , please help me
public partial class _Default : System.Web.UI.Page { ASPxSchedulerStorage Storage { get { return ASPxScheduler1.Storage; } } DBAccess db = new DBAccess(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Storage.Appointments.ResourceSharing = true; SetUpMapping(); ASPxScheduler1.Start = new DateTime(2008, 7, 12); string selectAppointments = "select *from CarScheduling"; string selectResource = "select * from Cars"; ASPxScheduler1.AppointmentDataSource = db.QueryToDataTable(selectAppointments); ASPxScheduler1.ResourceDataSource = db.QueryToDataTable(selectResource); ASPxScheduler1.DataBind(); } } private void SetUpMapping() { Storage.BeginUpdate(); try { ASPxResourceMappingInfo resMappings = Storage.Resources.Mappings; resMappings.Caption = "Model"; resMappings.ResourceId = "ID"; ASPxAppointmentMappingInfo aptMappings = Storage.Appointments.Mappings; aptMappings.AppointmentId = "ID"; aptMappings.Status = "Status"; aptMappings.Subject = "Subject"; aptMappings.Description = "Description"; aptMappings.Label = "Label"; aptMappings.Start = "StartTime"; aptMappings.End = "EndTime"; aptMappings.Location = "Location"; aptMappings.AllDay = "AllDay"; aptMappings.Type = "EventType"; aptMappings.RecurrenceInfo = "RecurenceInfo"; aptMappings.ReminderInfo = "ReminderInfo"; aptMappings.ResourceId = "CarId"; } finally { Storage.EndUpdate(); } } }
All-Star
194009 Points
28028 Posts
Moderator
Oct 09, 2012 03:06 AM|Mikesdotnetting|LINK
You should ask questions about 3rd party controls in their forums.
None
0 Points
1 Post
Devexpress:Scheduler How to load Scheduer on code behind
Oct 09, 2012 02:02 AM|hunterxh|LINK
I'm trying to load aspxScheduler from sql server on code behind, but my scheduler only display in 5 second (?) . This is my simple code , please help me
All-Star
194009 Points
28028 Posts
Moderator
Re: Devexpress:Scheduler How to load Scheduer on code behind
Oct 09, 2012 03:06 AM|Mikesdotnetting|LINK
You should ask questions about 3rd party controls in their forums.