BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
@Html.EJS().Schedule("schedule").Width("100%").Height("650px").EventRendered("onEventRendered").EventSettings(new ScheduleEventSettings { DataSource = ViewBag.datasource, EnableTooltip = true, TooltipTemplate = "#toolTip" }).SelectedDate(new DateTime(2018, 2, 15)).Render() |
@Html.EJS().Schedule("schedule").Width("100%").Height("650px").EventSettings(e => e.DataSource(ViewBag.datasource).EnableTooltip(true)).Render() |
Thanks for the example codes that you sent me. They work well.
I was able to execute all the code examples without problems.
The problem
is that they do not work with the sample code of the "Room
Scheduler".
You can send me the code based on the demo of the "Room Scheduler":
https://ej2.syncfusion.com/aspnetmvc/Schedule/TimelineResources#/material
Other
additional queries about the schedule control:
- Why do not you see the horizontal and vertical scroll bars ...?
- Why do not you take the css style right in the header ...? (Without modifying the demo css)
Again thanks for the help.
Jorge
<div>
@(Html.EJS().Schedule("schedule")
.Width("100%")
.Height("650px")
.CurrentView(View.TimelineMonth)
.WorkHours(new ScheduleWorkHours { Start = "08:00", End = "18:00" })
.TimeScale(ts => ts.SlotCount(1).Interval(60))
.Views(view => { view.Option(View.TimelineDay).Add(); view.Option(View.TimelineMonth)
.EventTemplate("#timeline-event-template").Add(); view.Option(View.MonthAgenda).Add(); })
.ResourceHeaderTemplate("#resource-template")
.Group(group => group.EnableCompactView(false).Resources(ViewBag.ResourceNames))
.Resources(res => { res.DataSource(ViewBag.RoomDatas).Field("RoomId").Title("Room Type").Name("MeetingRoom").TextField("name").IdField("id").ColorField("color").AllowMultiple(true).Add(); })
.EventSettings(new ScheduleEventSettings { DataSource = ViewBag.datasource, EnableTooltip = true, TooltipTemplate = "#toolTip" })
.PopupOpen("onPopupOpen")
.RenderCell("onRenderCell")
.EventRendered("onEventRendered")
.ActionBegin("onActionBegin")
.Render()
)
</div> |
var instance = new ej.base.Internationalization(); |
var instance = new ej.base.Internationalization(); |
layout
@RenderSection("scripts", required: false)
index
<script type="text/javascript">
var instance = new ej.base.Internationalization();
function getTimeString(value) {
return instance.formatDate(value, { skeleton: 'hm' });
}
</script> |
<link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" />
<script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script> |