Telerik blogs

Latest

  • Web ASP.NET MVC ASP.NET AJAX

    How To: Telerik RadGrid for ASP.NET AJAX with ASP.NET MVC

    I've made small example how to use RadGrid for ASP.NET AJAX in Microsoft ASP.NET MVC:   The key here is to inherit from RadGrid and call explicitly desired grid commands. Let's say you want to edit particular record: 1) Create a template column and add this to the ItemTemplate: <%# Html.ActionLink("Edit", "RadGridCommand", new { ControlID = MyGrid1.ID, CommandName = "Edit", CommandArgument = Container.ItemIndexHierarchical }) %>   2) Now handle this in your controller: public ActionResult RadGridCommand(string ControlID, string CommandName, string CommandArgument) {     ViewData["ControlID"] = ControlID;     ViewData["CommandName"]= CommandName;     ViewData["CommandArgument"] = CommandArgument;     return View("Index"); }   3) Override OnPreRender in inherited class and call explicitly the grid...
    September 30, 2008
  • Web ASP.NET AJAX

    CSS >> Emulating border-color: transparent in Internet Explorer 6

    Fortunately, Internet Explorer 7 supports border-color: transparent, but still, there are hardcore IE6 users and it seems that they will never update their browsers. This post is targeted to the developers that care and dare to make their websites crossbrowser. Thanks to a less known Internet Explorer CSS filter, the transparent border in Internet Explorer 6 can be easily achieved. Consider the following lines of CSS code: .testDiv { width: 200px; height: 200px; border: solid 10px transparent; } It works correctly under Internet Explorer 7, FireFox, Opera and Safari, while Internet Explorer displays a solid black border around .testDiv. To put it to work with IE6, we will create another rule, that is visible only in version...
    September 30, 2008
  • 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]...
    September 26, 2008
  • Web ASP.NET AJAX

    RadTips, Episode 7: Customizing RadScheduler Appointments with Resources

    Welcome back to another episode of RadTips, a series of episodes offering tips and tricks for using Telerik's RadControls. If you've missed previous episodes, be sure to check them out. Each is only a few minutes long and covers a specific RadControl feature: 1 - Client-Side Data Binding in the RadGrid 2 - Client-Side Paging in the RadGrid 3 - Client-Side Sorting in the RadGrid 4 - Client-Side Filtering in the RadGrid 5 - Getting Started with the RadScheduler 6 - Using the LinqDataSource in your RadGrid  This Week In this episode I show you how to add resources to your RadScheduler which you can then assign to...
    September 25, 2008
  • Web ASP.NET AJAX

    RadTreeView for ASP.NET Ajax - Optimizing Load On Demand performance

    In a previous blog post I mentioned that you should use WebService load on demand in order to squeeze the most performance from RadTreeView. In this post I will show a few other tricks which can be used to improve the loading time even further. All techniques are optional and can be used independently. We start with a simple page containing only a single RadTreeView control with one root node. The testing environment is: Visual Studio 2008 SP1 Intel Core 2 Duo E6550 @ 2.33GHz. IIS7 web site Internet Explorer 7 Latest internal build of Telerik.Web.UI.dll (which will go live with the Q3 2008 release) Here...
    September 24, 2008