BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
$(function () {
var dManager = ej.DataManager(window.Default).executeLocal(ej.Query().take(10));
$("#Schedule1").ejSchedule({
width: "100%",
height: "100%",
currentDate:new Date(2014,4,5),
---------------------
---------------------
});
});
function resize() {
var heights = window.innerHeight - 60;
var final = heights + 'px';
$('#Schedule1').ejSchedule({ height: final });
// The following code snippets is necessary to the display the schedule control with the scroller properly
var scrollObj = $("#Schedule1_scroller").data("ejScroller");
scrollObj.model.height = final;
scrollObj.refresh();
}
resize();
$(window).resize(function () {
resize();
});
</code>
We have prepared the sample with the provided code snippets (resize window) with required changes within the resize method, which can be downloaded from in the following link.
http://jsplayground.syncfusion.com/bn0mze0z
Please let us know if it helps and if you need further assistance on this.
Regards,
Velmurugan
Thanks for your update.
We suspect that this issue might have occurred due to resize method calling in the initial rendering. We request you to change the resize method name to some other name (ex: ScheduleResize) to overcome this issue. Please refer the following code snippets.
<code>
function scheduleResize() {
var heights = window.innerHeight - 60;
var final = heights + 'px';
$('#Schedule1').ejSchedule({ height: final });
// The following code snippets is necessary to the display the schedule control with the scroller properly
var scrollObj = $("#Schedule1_scroller").data("ejScroller");
scrollObj.model.height = final;
scrollObj.refresh();
}
resize();
$(window).resize(function () {
scheduleResize();
});
</code>
We have modified the sample with the above code snippets, which is available in the following location.
http://jsplayground.syncfusion.com/kspchkid
Please let us know if you need further assistance on this.
Regards,
Velmurugan
$(window).on('resize', function() {
$("#schedule").ejSchedule({ height: '100%' });
});