Hi Veronica,
Thanks for your update.
We do not have default option to meet this requirement, therefore we have prepared the workaround to meet your requirement to maintain the scroll position after the page refresh by maintaining the scroll top value in the window.localStorage variable and assigning it again to the schedule scroller within the create event. Please refer to the following code example.
<Code>
Default.aspx page:
<ej:Schedule ID="Schedule1" runat="server" Height="525px" Width="100%" CurrentDate="2015/06/14" Create="OnScheduleCreate" BeforeAppointmentCreate="OnBeforeAppointmentCreate" OnServerAppointmentCreated="Schedule1_ServerAppointmentSaved" OnServerAppointmentChanged="Schedule1_ServerAppointmentEdited" OnServerAppointmentRemoved="Schedule1_ServerAppointmentDeleted" OnServerResizeStop="Schedule1_ServerResizeStop" OnServerDragStop="Schedule1_ServerDragStop">
<AppointmentSettings Id="Id" Subject="Subject" AllDay="AllDay" StartTime="StartTime" EndTime="EndTime" Description="Description"/> <%--Here we are mapping the table fields to the schedule--%>
</ej:Schedule>
<script>
function OnBeforeAppointmentCreate() {
var scrolObj = this.element.find("#" + this._id + "_scroller").data("ejScroller");
window.localStorage.setItem("scrollTop", scrolObj.scrollTop()); // Here storing the scroll value while creating the appointment
}
function OnScheduleCreate() {
if (!ej.isNullOrUndefined(window.localStorage["scrollTop"])) {
$('div#' + this._id + "_scroller").ejScroller({ scrollTop: window.localStorage["scrollTop"] }); // Here setting the stored value to the scroller after page refreshing
}
}
</script>
</Code>
Kindly check with the above solution, whether it suits your query and also correct us by sharing your requirement with some other additional details or screenshots, if we have misunderstood your requirement.
Regards,
Velmurugan