- Home
- Forum
- ASP.NET Web Forms
- Cagar programador en hora predeterminada
Cagar programador en hora predeterminada
Buen dia
Es posible que cuando agende una cita, de recargar la pagina, me muestre la agenda en la ultima cita programada
Ejemplo agendo una cita para hoy a las 2pm al guardar la pagina se me recarga cuando carge nuevo la agenda pueda estar parada a las 2pm
Gracias por su ayuda
SIGN IN To post a reply.
3 Replies
VS
Velmurugan S
Syncfusion Team
May 21, 2018 12:34 PM UTC
Hi Veronica,
Thank you for contacting Syncfusion support.
We suspect that your requirement is to maintain and display the Schedule to be positioned at the same time of the lastly created appointment’s time in agenda view, even after the page refresh or reload. For example, if you are creating the appointment at 2 PM today and refreshing the page, after this the scroll position to be the same where the 2 PM appointment is rendering in all views. Kindly confirm whether this is your requirement, so that we can suggest you with the possible workaround solution, since the default support to achieve this not available for this requirement. Therefore, could you please confirm that your requirement is exactly the same as we understood or it is different? Share some more details about your requirement like screenshot or video demo if possible. The information provided will be more helpful for us to understand your requirement clearly and proceed further on it.
Kindly revert us back your requirement in English as we are not clear about your requirement details to provide you prompt solution.
Regards,
Velmurugan
VO
veronica orozco
May 22, 2018 02:46 PM UTC
Good day
If the requirement is the same,
I'm working with web forms, if I set an appointment he goes to the codebehing and he keeps it in the database at that moment the page is updated, but he shows me the 6 am which is where the agenda starts, the idea is to show the Last hour that I date the appointment
VS
Velmurugan S
Syncfusion Team
May 25, 2018 05:20 AM UTC
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
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
VO veronica orozco
- May 18, 2018 04:43 AM UTC
- May 25, 2018 05:20 AM UTC