Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147718 | Sep 21,2019 09:46 AM UTC | Oct 3,2019 07:11 AM UTC | ASP.NET Core - EJ 2 | 9 |
![]() |
Tags: DatePicker |
<div id="cn"></div>
<ejs-button id="primarybtn" content="Click" isPrimary="true" onclick="clickAjax()"></ejs-button>
<script>
function clickAjax() {
var ajax = new ej.base.Ajax('/home/about', 'GET', true);
ajax.send().then(function (result) {
$('#cn').append(result);
});;
}
</script> |
@{
for (var i = 0; i <= 10; i++)
{
var ID = Guid.NewGuid().ToString();
<div>
<h6>Essential JS 2 Datepicker component</h6>
<ejs-datepicker id="@("date" + ID.Substring(0,5))" placeholder="Choose a Date"></ejs-datepicker>
</div>
}
<br />
} |
<div id="cn">
@Html.Partial("about")
</div>
<div id="dynamic"></div>
<ejs-button id="primarybtn" content="Click" isPrimary="true" onclick="clickAjax()"></ejs-button>
<script>
function clickAjax() {
var ajax = new ej.base.Ajax('/home/about', 'GET', true);
ajax.send().then(function (result) {
$('#dynamic').append(result);
});;
}
</script> |
@{
IDictionary<string, object> htmlAttr = new Dictionary<string, object>();
htmlAttr.Add("name", string.Format("{0}_{1}_{2}", "ItemDetails_", Guid.NewGuid().ToString(), "_MyTime"));
}
<h6>Essential JS 2 TextBox component</h6>
<ejs-timepicker id="time" htmlAttributes="htmlAttr"></ejs-timepicker> |
@{
for (var i = 0; i <= 5; i++)
{
var Date_ID = Guid.NewGuid().ToString();
<div>
<h6>Essential JS 2 Datepicker component</h6>
<input type="text" id="@("ItemDetails_" + Date_ID.Substring(0,5) + "__MyDate")" />
</div>
<script>
var datepicker = new ej.calendars.DatePicker();
datepicker.appendTo("#@("ItemDetails_" + Date_ID.Substring(0,5) + "__MyDate")");
</script>
}
<br />
} |
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.