<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadAjaxManagerDynamicallySettingsVB._Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>
    <div>
    
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script language="javascript" type="text/javascript">            
            function startAjaxRequest()
            {
                var ajaxManager  = $find("<%= RadScriptManager1.ClientID %>");  
                ajaxManager.ajaxRequest("Filter:svchost" );  
                return false;
            }
            </script>
        </telerik:RadCodeBlock>
        
         <telerik:RadAjaxLoadingPanel IsSticky="true" ID="LoadingPanel1" runat="Server">
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" />
        </telerik:RadAjaxLoadingPanel>
                
        <telerik:RadAjaxManager runat="server" ID="RadScriptManager1" 
            DefaultLoadingPanelID ="LoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadScriptManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Button1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        
        <asp:Button runat="server" ID="Button1" OnClientClick="return startAjaxRequest();" Text="Send filter to server"/>
                
        <telerik:RadGrid runat="server" ID="RadGrid1"  Width="200px"
             >                
            <MasterTableView >                
            </MasterTableView>  
            <ClientSettings >
                <Selecting AllowRowSelect="true" />               
            </ClientSettings>                      
        </telerik:RadGrid>
        
    </div>
    </form>
</body>
</html>
