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.
select

Ajax / Partial Ajaxification

Rate this demo: Feedback
Run example in: C# VB.NET Change Skin:
Vista
  • BlackBlack
  • DefaultDefault
  • ForestForest
  • HayHay
  • Office2007Office2007
  • OutlookOutlook
  • SimpleSimple
  • SitefinitySitefinity
  • SunsetSunset
  • TelerikTelerik
  • VistaVista
  • Web20Web20
  • WebBlueWebBlue
  • Windows7Windows7

Products:

Add to cartProductNameQuantityPerUnitUnitPriceUnitsInStock
 
Page size:
select
 30 items in 6 pages
Chai10 boxes x 20 bags$18.0039
Chang24 - 12 oz bottles$19.0017
Aniseed Syrup12 - 550 ml bottles$10.0013
Chef Anton's Cajun Seasoning48 - 6 oz jars$22.0053
Grandma's Boysenberry Spread12 - 8 oz jars$25.00120


Shopping cart:


Example Source Code & Description

Instructions
Open in new window
  • The example demonstrates the ability of RadAjaxManager to ajaxify specific controls dynamically. Here, the ImageButtons are ajaxified intercepting the ItemCreated event hander of the grid.
    Here is a code snippet showing how this is achieved:

            protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) 
            { 
                if (e.Item is GridDataItem) 
                { 
                    GridDataItem dataItem = e.Item as GridDataItem; 
                    ImageButton ibtnAddToCart = (ImageButton)(dataItem["TemplateColumn1"]).FindControl("ibtnAddToCart"); 
                    RadAjaxManager1.AjaxSettings.AddAjaxSetting(ibtnAddToCart, RadGrid2); //ajaxify the button 
                } 
            } 

    When one of the image button is clicked, the corresponding item is added to the Shopping cart (RadGrid2).

    Both grids are ajaxafied with declaratively applied settings in the mark-up code. For further information please refer to the Default.aspx section.

Compatible with ASP.NET 2.0, 3.5 AJAX enabled Accessibility Verified!Accessibility Verified!Valid XHTML 1.1! Optimized for Visual Studio 2005, 2008
Copyright 2002-2010 © Telerik. All right reserved  | 
Telerik Inc., 460 Totten Pond Rd, Suite 640, Waltham, MA 02451

www.telerik.com  |  Terms of Use  |  Contact Us