We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Scheduler not binding to appointment data in MVC4

Thread ID:

Created:

Updated:

Platform:

Replies:

107780 Mar 18,2013 02:51 AM Mar 20,2013 09:04 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Schedule
Madhavi
Asked On March 18, 2013 02:51 AM

Hi,
 
I am trying to use the scheduler in MVC4  C# razor application.
Here are the environment details:
VS 2012, MVC4 Razor application with SQL server database.
 
I am able to see the data in model, and properly getting binded if i use the syncfusion grid.
But the same if i replace the scheduler control, the appointments are not shown. I am unable to figure out where am i going wrong to bind the data to scheduler. Here is the  sample code:

@{ Html.Syncfusion().Schedule(

"EssentialSchedule1")

.DataSource(Model)

.Width(850)

.Height(550)

.Skins(

ScheduleSkins.Marble)

.StartHour(8)

.EndHour(19)

.CurrentDate(

new DateTime(2012,3,15))

.HighlightBusinessHours(

true)

.DateFormat(

"MM/dd/yyyy HH:mm:ss")

.BindList(columns =>

{

columns.IdField(

"Id");

columns.SubjectField(

"Subject");

columns.LocationField(

"Location");

columns.StartTimeField(

"StartTime");

columns.EndTimeField(

"EndTime");

columns.DescriptionField(

"Description");

columns.OwnerField(

"Owner");

}).Render();

}

 
Can you please help me out in resolving this issue, ASAP?
 
Regards,
Madhavi


Scheduler Issue_b892c930.rar

Velmurugan S [Syncfusion]
Replied On March 20, 2013 09:04 AM

Hi Madhavi,

Thanks for Contacting Syncfusion forums.
We have prepared a sample with your code and it is working fine now which has been attached below.

Kindly have a look at the sample and let us know if helps.
Or if you still feel that issue exists, could you please try reproducing the issue in above sample and share it with us,
so that we can analyze the problem from our end and provide you a better solution.

Please let us know if you have any other concerns.

Regards,
Velmurugan


ScheduleMVC4_f58a1198.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;