Telerik blogs

Latest

For the latest product updates, please visit Release.

  • Web ASP.NET MVC

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

    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: ...
    November 09, 2009
  • Web ASP.NET MVC

    Telerik Extensions for ASP.NET MVC – Troubleshooting

    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...
    November 09, 2009
  • Web ASP.NET MVC

    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 { ...
    November 03, 2009
  • Web ASP.NET MVC

    ASP.NET MVC - Passing JSON to controller actions and populating controls on demand

    As you probably know some of our controls support web service load on demand (a.k.a. client-side databinding). Also in ASP.NET MVC we can call controller actions via Ajax. In this blog post I will show you how to populate RadComboBox and RadTreeView on demand by using a controller action which returns JsonResult. Let's start with RadComboBox: Configure RadComboBox for Load on Demand I have added the RadComboBox control to the default Index.aspx view and configured it like this: <telerik:RadComboBox runat="server" ID="RadComboBox1" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EmptyMessage="Type here ..." Height="200px"> <WebServiceSettings Path="Home" Method="LoadItems" /></telerik:RadComboBox> .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } The important thing here is that RadComboBox is configured as if it were using a web service...
    April 01, 2009
  • Web ASP.NET MVC ASP.NET AJAX

    ASP.NET Ajax Controls in ASP.NET MVC - MVC Forum Updated

    We have updated our MVC Forum sample application to use the official ASP.NET MVC 1.0, RadControls for ASP.NET Ajax Q1 2009 and the latest installment of Telerik OpenAccess ORM. Online demo | Download...
    April 01, 2009