• .NET Mobile

    Using ViewModel objects to improve the Ajax performance of Telerik Grid for ASP.NET MVC

    November 10, 2009 Share
    In this blog post I will demonstrate how to squeeze the most from Telerik Grid for ASP.NET MVC when using Ajax binding. Lets start with a simple grid bound to the Northwind Orders table: View: <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<UsingDto.Models.Order>>" %><asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server"> Home Page</asp:Content><asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server"><%= Html.Telerik().Grid(Model) .Name("Grid") .Columns(columns => { columns.Add(o => o.OrderID).Width(100); columns.Add(o => o.Customer.ContactName).Width(200); ...
  • .NET Mobile

    Using Telerik Grid for ASP.NET MVC without any server-side code

    November 09, 2009 Share
    Since all Telerik UI components for ASP.NET MVC are actually jQuery plugins one can use them without any server-side code (or ASP.NET MVC). In this blog post I will show how to use the grid and bind it to Twitter. Here are the required steps:   Register the two CSS files to style the grid: <head> <link rel="stylesheet" type="text/css" href="telerik.common.min.css" /> <link rel="stylesheet" type="text/css" href="telerik.vista.min.css" /> </head> Then add the JavaScript files: ...
  • .NET Mobile

    Telerik Extensions for ASP.NET MVC – Troubleshooting

    November 09, 2009 Share
    Wow it has been a busy release! I am glad that we managed to release our first home-grown UI extensions for ASP.NET MVC. I hope you like them and please, please share your feedback in the forum.   In this blog post I will highlight the most common problems you may encounter while using the extensions and their solutions. Here we go: The control renders fine but its client-side features do not work The most common reason is that there is no ScriptRegistrar or it is placed before the UI components. It is mandatory that you add a ScriptRegistrar because the UI components require it...
  • .NET Mobile

    Using T4MVC strongly-typed helpers with Telerik Extensions for ASP.NET MVC

        If you want fast and strongly-typed access to your controller actions, the T4 helpers by David Ebbo are a real treasure. Since we couldn’t provide an support for them out-of the box (after all, the helper classes are generated), here is a small extension method that allows their usage as shown in the screenshot above.   using System.Web.Mvc; using Telerik.Web.Mvc; using Telerik.Web.Mvc.Infrastructure; using Telerik.Web.Mvc.UI; public static class NavigationItemBuilderExtensions { public static NavigationItemBuilder<TItem, TBuilder> Action<TItem, TBuilder> (this NavigationItemBuilder<TItem, TBuilder> instance, ActionResult action) where TItem : NavigationItem<TItem> where TBuilder : NavigationItemBuilder<TItem , TBuilder>, IHideObjectMembers { ...
  • .NET Mobile

    Announcing a new product line - Telerik Extensions for ASP.NET MVC

    August 12, 2009 Share
    It is a great pleasure to announce our new product line - Telerik Extensions for ASP.NET MVC. As the name suggest we are building a new UI component suite targeting the ASP.NET MVC framework. The new product line will not be based on RadControls for ASP.NET Ajax nor will it depend on ASP.NET Ajax or ASP.NET WebForms. No page lifecycle, ScriptManager dependency, viewstate or postback . And did I mention that it would be FREE? Free and Open Source Telerik Extensions for ASP.NET MVC is available as an open source product under the Ms-PL license. For the first time Telerik will be releasing a free...