Using Telerik RadGrid in ASP.NET MVC together with RenderPartial, Ajax.Form, Ajax.ActionLink and UpdateModel

Tuesday, October 07, 2008 by Vladimir Enchev | Comments 6

I've made yet another ASP.NET MVC example with RadGrid for ASP.NET AJAX however instead of Html.Form and Html.ActionLink I have used Ajax.Form and Ajax.ActionLink:

Untitled

As a result now you have an ajax enabled grid with paging, sorting, select, edit, update, delete and insert:
Untitled1

[Download]

6 Comments

  • Krlos 21 Jan 2009
    Have you prube with MVC and Client-Side API, onCommand Method send an error element of type 'Button' requires runat="server". It's the only method does not work, but it's kind of the principals. Thanks
  • Robin 29 Jan 2009
    Is there no way to assign the datasource without having the item be in a user control?  I want to just do a simple grid of my LINQ data with ajax paging to start.  Can I assign that via ViewData in my control or do I have to Render the grid in a user control  to access the page behind?  If at all possible, I'd like to avoid using code-behind and user controls for time being to simplify my design as much as possible.

    Thx,
    Rob
  • G 23 Mar 2009
    This one doesnt want to run here.
  • Jobert 12 Oct 2009
    Hi I tried to create RadGrid in MVC but I got an error at runtime "Script controls may not be registered after PreRender". I also downloaded your sample but the html.RenderPartial() for your RadGrid cannot be found on my helper. You use maybe MVC 2 preview 2 and RenderPartial() is no longer available on that version. Please help how you were able to use the RadGrid. Thanks
  • Erik 15 Oct 2009
    yes, same problem here.

    error CS1061: System.Web.Mvc.HtmlHelper .... does not contain a definition for RenderPartial ...
  • Vlad 19 Oct 2009
    Hi guys,

    This demo was for old MVC preview. Please check this post for more info about our recent work:
    http://weblogs.asp.net/rashid/archive/2009/09/16/telerik-asp-net-mvc-grid-preview-take-1.aspx

    Vlad

Add comment

  1. Formatting options
       
     
     
     
     
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)