Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q1 2012 released 04/11/2012
select

Ajax / First Look



Received  
  ReceivedFromFolder nameSize
123
 Item 1 to 20 of 52
Page:of 3 Page size:

Received from date: Sunday, March 28, 2010

  3/28/2010EWarner@web.comDrafts2
  3/28/2010NBullard@web.comDeleted Items8
  3/28/2010TSholl@web.comDeleted Items9
  3/28/2010SWard@web.comDeleted Items65
  3/28/2010GTomlinson@web.comDrafts6

Received from date: Saturday, March 27, 2010

  3/27/2010FDuncan@web.comDeleted Items54
  3/27/2010KAnn@web.comDrafts2
  3/27/2010LSanborn@web.comDrafts87
  3/27/2010SBonner@web.comDeleted Items4378
  3/27/2010JGreenawalt@web.comJunk E-mail5678
  3/27/2010CCox@web.comJunk E-mail234
  3/27/2010EOmara@web.comJunk E-mail5

Received from date: Friday, March 26, 2010

  3/26/2010ARodacker@web.comInbox856
  3/26/2010FHeckendora@web.comJunk E-mail3
  3/26/2010ACatherina@web.comInbox3
  3/26/2010ISaline@web.comInbox23
  3/26/2010BAtkinson@web.comOutbox5
  3/26/2010JQueer@web.comSent Items89
  3/26/2010CPeters@web.comInbox23
  3/26/2010BNehling@web.comOutbox645


  • This example illustrates how easy it is to AJAX-enable an asp.net control. By simply wrapping a standard (or custom) control in a RadAjaxPanel, all postbacks that it performs will be converted to an AJAX requests without writing a single line of code. All events handlers, viewstate and form data are preserved and the page life cycle goes on as normal. We have chosen two relatively complex controls: a Calendar and a Grid and have wrapped them in RadAjaxPanel to demonstrate how to "ajaxify" them.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="false" Inherits="Telerik.AJAXExamplesCSharp.AJAX.Examples.Panel.FirstLook.DefaultCS" %>

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="telerik" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="telerik" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="telerik" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <telerik:HeadTag runat="server" ID="Headtag1"></telerik:HeadTag>
    </head>
    <body class="BODY">
        <form runat="server">
        <telerik:Header runat="server" ID="Header1" XhtmlCompliant="true" NavigationLanguage="CS"
            ShowSkinChooser="true"></telerik:Header>
        <!-- content start -->
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
            <div>
    <asp:CheckBox ID="chkEnableAjax" runat="server" Checked="true" AutoPostBack="true"
    OnCheckedChanged="chkEnableAjax_CheckedChanged"/>

                <asp:Label ID="Label1" runat="server" AssociatedControlID="chkEnableAjax"> <strong>Switch on/off the Ajax of the RadAjaxPanel</strong></asp:Label>
            </div>
            <br /><br />
            <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" PageSize="20"
                AllowSorting="True" AllowMultiRowSelection="True" AllowPaging="True" ShowGroupPanel="True"
                AutoGenerateColumns="False" GridLines="none">
                <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                <MasterTableView Width="100%">
                    <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="Received" FieldName="Received" FormatString="{0:D}"
                                    HeaderValueSeparator=" from date: "></telerik:GridGroupByField>
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldName="Received" SortOrder="Descending"></telerik:GridGroupByField>
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>
                    <Columns>
                        <telerik:GridBoundColumn SortExpression="Received" HeaderText="Received" HeaderButtonType="TextButton"
                            DataField="Received" DataFormatString="{0:d}">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="From" HeaderText="From" HeaderButtonType="TextButton"
                            DataField="From">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="FolderName" HeaderText="Folder name" HeaderButtonType="TextButton"
                            DataField="FolderName">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Size" HeaderText="Size" HeaderButtonType="TextButton"
                            DataField="Size">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                    <Selecting AllowRowSelect="True"></Selecting>
                    <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True"
                        ResizeGridOnColumnResize="False"></Resizing>
                </ClientSettings>
                <GroupingSettings ShowUnGroupButton="true" />
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
        <br />
        <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM Mails" runat="server">
        </asp:SqlDataSource>
        <!-- content end -->
        <telerik:Footer runat="server" ID="Footer1"></telerik:Footer>
        </form>
    </body>
    </html>

Get more than expected!

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2012 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451