Telerik blogs

Latest

For the latest product updates, please visit Release.

  • Web ASP.NET MVC

    Binding to a collection of dynamic objects with Grid Extension for ASP.NET MVC

    Great news everybody! With its latest version and the addition of MVC3 specific build, you can now bind the MVC Grid to a collection of dynamic objects quite easily. Note that we will be using the new Razor view engine for extra fun. Just declare the View’s model to be IEnumerable<dynamic> 1: @using Telerik.Web.Mvc.UI 2: @model IEnumerable<dynamic> 3: @( 4: Html.Telerik().Grid(Model) 5: .Name("Grid") 6: .Columns(columns...
    November 12, 2010
  • Web ASP.NET MVC

    RadChart for Silverlight in ASP.NET MVC Application

    The purpose of this blog post is to show how to incorporate RadChart for Silverlight in an ASP.NET MVC application. Manol has already shown how to do this for ASP.NET and things are not much different for ASP.NET MVC. Let’s start with a simple Silverlight application with a single RadChart. For simplicity, I will populate it with a list of numbers, you can also use any of the techniques, supported by RadChart. The code is as simple as this XAML: <telerik:RadChart x:Name="RadChart1" /> And C#: RadChart1.ItemsSource = new double[] { 3d, 4d, 6d };   I will create two write-only properties of the Silverlight user control -- ShowItemLabels and SeriesType. They are marked with  ScriptableMemberAttribute so...
    October 01, 2010
  • Web ASP.NET MVC

    Using nested complex objects with ASP.NET MVC editor templates

    This may be common knowledge but I failed to quickly find the relevant info when it hit me. In short the default editor template generated by ASP.NET MVC 2 ignores any nested complex properties of your model. Here is a short example which demonstrates the case:   Model: public class Customer{ public int ID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public Address Address { get; set; }} public class Address{ public string Street { get; set; } public string City { get; set; }} Controller: public class HomeController : Controller{ // // GET: /Home/ public ActionResult Index() { return View(new Customer { ...
    September 30, 2010
  • Web ASP.NET MVC

    Output Caching and Telerik Extensions for MVC

    When we pushed out Telerik TV, we ran into an interesting style issue.  We were using output caching on our index page to save the server a little work.  However, sometimes when a user navigated to tv.telerik.com/home it would look like this: This problem would only manifest itself on the production server, and shockingly there were no errors! By looking at the source of the page we quickly realized that neither the StyleSheetRegistrar, nor the ScriptRegistrar were outputting anything at all.  This made it clear that the Render method on the StyleSheetRegistrar / ScriptRegistrar was not firing, or something was causing them...
    September 15, 2010
  • Web ASP.NET MVC

    Shipped Telerik Extensions for ASP.NET MVC Q2 2010 Beta

    We just shipped the beta of the Q2 2010 release. Download instructions for the beta can be found in the announcement forum thread. Why a beta when other Telerik products had their betas a month ago? We decided to postpone the official release of Telerik Extensions for ASP.NET MVC so we can deliver … three five new components! The official release would ship later this summer. New Components Telerik Editor for ASP.NET MVC In its first release the editor will contain only the most necessary text editing tools. We aim to keep it small thus more complex tools (image manager, table wizard etc)...