Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144278 | Apr 26,2019 10:07 PM UTC | Apr 30,2019 10:17 AM UTC | ASP.NET MVC - EJ 2 | 3 |
![]() |
Tags: Calendar |
@page "/"
@inject IJSRuntime JsRuntime;
@using Syncfusion.EJ2.RazorComponents.Calendars;
<div id="wrapper">
<EjsDatePicker Id="test" Change="@Change" Start="@Syncfusion.EJ2.RazorComponents.Calendars.CalendarView.Decade" Depth="@Syncfusion.EJ2.RazorComponents.Calendars.CalendarView.Decade" Format="yyyy">
</div>
@functions{
EjsDatePicker dueDatePicker;
protected async void Change (object args)
{
await JsRuntime.InvokeAsync<bool>
("change");
}
} |
function change(args) {
var date = document.getElementById("test ").ej2_instances[0];
var value = date.value;
alert(value);
} |
<body>
<app>Loading...</app>
<script src="_framework/components.webassembly.js"></script>
<script src="scripts/datepicker/datepicker.js"></script>
</body>
</html> |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.