Telerik blogs
  • Web ASP.NET AJAX

    Codeless client-side data-binding for your ASP.NET AJAX DataGrid?

    With RadControls for ASP.NET AJAX Q3 Beta we have provided great client-side data-binding improvement for the grid and now you can bind your data to any web service or page method completely codeless: ...   <ClientSettings>       <DataBinding Location="MyWebService.asmx" SelectMethod="GetDataAndCount" />  ...     Using this new approach you can get both data and total items count in a single request and if you turn on client-side caching the grid will perform request to the server only when needed! I'm really excited to announce that we extended this even more and now you specify following new properties: SortParameterType - SelectMethod sort expressions argument type. Can be set to "String", "List", "Linq" and "Oql". Default is...
    October 20, 2008
  • Web ASP.NET MVC

    The Grid in Microsoft ASP.NET MVC Beta

    As you know this week Microsoft released ASP.NET MVC Beta and I've updated my last grid example to the latest ASP.NET MVC version. I needed to change only two things: - Ajax.Form changed to Ajax.BeginForm/Ajax.EndForm - Html.SubmitButton changed to plain <input type="submit" /> and everything worked instantly! [Live | Download]...
    October 17, 2008
  • Web jQuery

    Telerik RadGrid client-side data-binding using jQuery

    Instead of traditional ASP.NET AJAX approach for "Exposing Web Services to Client Script" you can use jQuery and JSON2 JavaScript libraries to achieve the same very easily. Using this simple method you can call any page method in ASP.NET Page or WebService method: function executeMethod(location, methodName, methodArguments, onSuccess, onFail) {     $.ajax({         type: "POST",         url: location + "/" + methodName,         data: methodArguments,         contentType: "application/json; charset=utf-8",         dataType: "json",         success: onSuccess,         fail: onFail     }); }   Here is an example also how to use JSON2 JavaScript library to serialize any JavaScript object to string: function getRequestData(tableView) {     return JSON.stringify({...
    October 09, 2008
  • Web ASP.NET MVC

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

    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: As a result now you have an ajax enabled grid with paging, sorting, select, edit, update, delete and insert: [Download]...
    October 07, 2008
  • Web ASP.NET MVC

    Telerik RadControls in Microsoft ASP.NET MVC

    To continue with my previous blog post about RadGrid for ASP.NET AJAX in Microsoft ASP.NET MVC, I've made another example how to use RadControls for ASP.NET AJAX as pure client-side components in this environment. The biggest challenge here is the ScriptManager and scripts registration in general. By default the creation of client-side components is so tightly coupled with the ajax functionality (PageRequestManager) that the only way to enable this is to inherit from ScriptManager (or RadScriptManager) and build everything manually: protected override void Render(HtmlTextWriter writer) {      foreach (RegisteredScript script in GetRegisteredClientScriptBlocks())      {          if (Page.Items[script.Key] == null)          {              Page.Items[script.Key] =...
    October 02, 2008