TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
2.1k
481k
Syncfusion.EJ2 not loading URL page not found
Oct 19 2020 5:33 AM
Hi Team
Has any developer ever worked on this library, i have installed it and trying to use Calendar Scheduler. Its not loading the URL on the View, page is not found. This what i have at the moment, the View
"The page can not be found"
routes.MapRoute(
name:
"LocalData"
,
url:
"load-data"
,
defaults:
new
{controller =
"Schedule"
, action =
"LocalData"
, id= UrlParameter.Optional}
);
//GET:eNtsaCoourseEvents.
public
partial
class
ScheduleController:Controller
{
public
ActionResult LocalData()
{
ViewBag.datasource =
new
ScheduleData().eNtsaCalendarEventsData();
return
View();
}
}
@
using
Syncfusion.EJ2
@
using
Syncfusion.EJ2.Schedule
@model eNtsaRegistrationTraining.Models.ScheduleData
@section ControlsSection{
<div
class
=
"control-section"
>
<div
class
=
"content-wrapper"
>
@Html.EJS().Schedule(
"schedule"
).Width(
"100%"
).Height(
"650px"
).EventRendered(
"onEventRendered"
).EventSettings(
new
ScheduleEventSettings {DataSource = ViewBag.datasource}).SelectedDate(
new
DateTime(2020,10,15)).Render()
</div>
</div>
<!--Adding some Javascript libraries-->
<script type=
"text/javascript"
>
function onEventRendered(args) {
var scheduleObk = document.getElementById(
'schedule'
).ej_instance[0];
var categoryColor = args.data.CategoryColor;
if
(!args.element || !categoryColor) {
return
;
}
if
(scheduleObk.currentView ===
'Agenda'
) {
(args.element.firstChild).style.borderLeftColor = categoryColor;
}
else
{
args.element.style.categoryColor;
}
}
</script>
}
Reply
Answers (
3
)
relationship issue in another table
How to display Two Mapbox Maps in a single page (HTML)