Telerik blogs

Latest

For the latest product updates, please visit Release.

  • Web jQuery

    Chainability (The Magic of jQuery)

    This article is taken from How jQuery Works.   jQuery uses an interesting concept called a "Builder" to make its code short and simple. The Builder pattern is an object-oriented programming design pattern that has been gaining popularity. In a nutshell: Every method within jQuery returns the query object itself, allowing you to 'chain' upon it, for example: $("a") .filter(".clickme") .click(function(){ alert("You are now leaving the site."); }) .end() .filter(".hideme") .click(function(){ $(this).hide(); ...
    May 27, 2021 1 min read
  • 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({...
    May 27, 2021 1 min read
  • Web jQuery

    How To: Animate RadGrid headers using jQuery

    Yesterday I saw this and I really liked the script. The idea is to animate backgroundPosition CSS property for desired HTML element and I have created small example how to do the same for RadGrid column headers: Enjoy! [Download]...
    May 27, 2021 1 min read