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. Image for the cookie policy date
close icon

Scheduler not binding to appointment data in MVC4

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

1 Reply

VS Velmurugan S Syncfusion Team March 20, 2013 01:04 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon