Page refresh

Hi,

Can you give me a code to refresh het scheduler calendar every 60 seconds.

And where should i put this code.

Regards,

Danny

Hi,
you can set periodic action with js setInterval method,
something likesetInterval(function(){ scheduler.load(url, "json"); }, 60*1000);And put this code below DHXScheduler.Render call on the page

Hi,

Which file we have to edit ?

Regards, Danny

put the code to the view page where you render the scheduler(.aspx or .cshtml)

Hi,

And which page is the view page where we render the scheduler (.aspx or .cshtml) ?

Can you give the file name. We use aspx and vb not c#.

Regards, Danny

Hi Danny,
You should place javascript code from previous message(replacing the ‘url’ with actual url to the datasource) to the same view page where calendar is renderer. I don’t know how this file is named in your project

Hi Aliaksandr,

We run the scheduler standalone.

Our default page is Default.aspx.

Can you a helping hand.

Regards,

Danny

If you use SchedulerAspNetVB example, this code goes to Default.aspx
complete file may look like following:[code]<%@ Page Title=“Home Page” Language=“vb” MasterPageFile="~/Site.Master" AutoEventWireup=“false”
CodeBehind=“Default.aspx.vb” Inherits=“SchedulerAspNetVB._Default” %>

<asp:Content ID=“HeaderContent” runat=“server” ContentPlaceHolderID=“HeadContent”>
</asp:Content>
<asp:Content ID=“BodyContent” runat=“server” ContentPlaceHolderID=“MainContent”>


<%= Me.Scheduler.Render() %>


</asp:Content>[/code]

Hi,

Thank you. This works fine !

Regards,

Danny