<%@ Page Language="vb" CodeFile="DefaultVB.aspx.vb" AutoEventWireup="false" Inherits="Telerik.AjaxManager.ApplicationScenarios.AjaxifyTimer.DefaultVB" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<div class="qsf-demo-container">
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Timer1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="DropDownList1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="Panel1"></telerik:AjaxUpdatedControl>
<telerik:AjaxUpdatedControl ControlID="Panel2"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server"
OnItemDataBound="RadGrid1_ItemDataBound"
OnNeedDataSource="RadGrid1_NeedDataSource">
<MasterTableView AutoGenerateColumns="False" DataKeyNames="Change" TableLayout="Fixed">
<Columns>
<telerik:GridBoundColumn DataField="Index" HeaderText="Index" UniqueName="Index">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Value" HeaderText="Value" DataFormatString="{0:C2}"
UniqueName="Value">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Change" HeaderText="Change" DataFormatString="{0:P2}"
UniqueName="Change">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn UniqueName="TemplateColumn">
<HeaderStyle Width="40px"></HeaderStyle>
<ItemTemplate>
<asp:Image ID="Image1" AlternateText="progress" runat="server"></asp:Image>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<asp:Panel ID="Panel1" runat="server">
<asp:Timer ID="Timer1" runat="server" Interval="3000" OnTick="Timer1_Tick">
</asp:Timer>
</asp:Panel>
</div>
<qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Title="Demo Configurator" Expanded="true">
<Views>
<qsf:View>
<qsf:ConfiguratorColumn ID="ConfiguratorColumn1" runat="server" Size="Medium">
<qsf:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" Label="Timer Interval" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" Size="Medium">
<Items>
<telerik:DropDownListItem Text="2 seconds" Value="2000"></telerik:DropDownListItem>
<telerik:DropDownListItem Text="3 seconds" Value="3000" Selected="True"></telerik:DropDownListItem>
<telerik:DropDownListItem Text="5 seconds" Value="5000"></telerik:DropDownListItem>
</Items>
</qsf:DropDownList>
</qsf:ConfiguratorColumn>
</qsf:View>
</Views>
</qsf:ConfiguratorPanel>
</form>
</body>
</html>