This is a migrated thread and some comments may be shown as answers.

trying to use Telerik Ajaxify Timer to refresh the view at intervals determined by a configuration item

1 Answer 81 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alok
Top achievements
Rank 1
Alok asked on 21 Jun 2012, 12:28 PM
Hi,

I am trying to use Telerik Ajaxify Timer to refresh the view at intervals determined by a configuration item . for this i have referred http://demos.telerik.com/aspnet-ajax/ajax/examples/common/ajaxifytimer/defaultcs.aspx link and in my  view.aspx page I have added :

<telerik:RadAjaxManagerProxy ID="ramDiary" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="TimerRefresh">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DiarySchedule12" LoadingPanelID="LoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
 
and
 
 <telerik:RadScheduler Width="100%" ID="DiarySchedule12" runat="server" DayView-UserSelectable="false"
                                DataKeyField="ID" DataSubjectField="Description" DataStartField="Start" DataEndField="End"
                                WeekView-UserSelectable="False" TimelineView-UserSelectable="False" MonthView-UserSelectable="False"
                                Height="550px" NumberOfHoveredRows="1" DayStartTime="08:00:00" HoursPanelTimeFormat="HH:mm"
                                RowHeight="35px" Skin="Outlook" TimeLabelRowSpan="1" WorkDayEndTime="18:00:00"
                                WorkDayStartTime="08:00:00" ShowAllDayRow="False" Culture="en-GB" ShowFooter="true"
                                AllowDelete="False" AllowEdit="False" AllowInsert="False" DayEndTime="18:00:00"
                                EnableExactTimeRendering="True" CustomAttributeNames="Status" ShowNavigationPane="True"
                                MinutesPerRow="15" StartEditingInAdvancedForm="true" OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick"
                                OnClientAppointmentContextMenuItemClicked="OnClientAppointmentContextMenuItemClicked">
                                <ResourceHeaderTemplate>
 </telerik:RadScheduler>
 
and
 
<asp:Panel ID="PanelTimer" runat="server">
       <%-- <asp:Timer ID="TimerRefresh" runat="server" Interval="900000" OnTick="TimerRefresh_Tick" />--%>
        <asp:Timer ID="TimerRefresh" runat="server" Interval="3000" OnTick="TimerRefresh_Tick" />
    </asp:Panel>
 And in my  view.aspx.cs page in Page_Load  I have added :

int btimerRefresh = AM.IntOption("timer_refresh");
 
 
   
           TimerRefresh.Interval = btimerRefresh * 1000;

Now the 

The view is  getting refreshed but, I am not getting the image while refreshing diary.

Please Suggest as it is urgent for me.

Regards,
ABC




1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 26 Jun 2012, 07:46 AM
Hello Alok,

Please ensure that you have set Skin property for the RadAjaxLoadingPanel in the control's markup. If this is not the issue please share the RadAjaxLoadingPanel declaration so we could further research on the described issue.

Regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Alok
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or