Telerik blogs

Latest

For the latest product updates, please visit Release.

  • Web ASP.NET MVC

    Full Razor support and examples coming in SP1 of Telerik Extensions for MVC (2010 Q3)

    We’ve “signed off” the first service release of the Telerik Extensions (2010 Q3) just a few minutes ago and it’s on its way to you. Apart from the usual fixes this release adds full support for the new Razor view engine. The official MVC 3 release has been out only for a few days, but the interest in this new view engine is deservedly high. This view engine required some tinkering under the hood of the Extensions, but it has all been taken care of. Any issues you might have had until now (nested content rendering out of place, syntax errors in template...
    January 18, 2011
  • Web ASP.NET MVC

    Binding Telerik Grid for ASP.NET MVC to OData

    We have just made a nice demo application showing how to bind Telerik Grid for ASP.NET MVC to OData using Telerik TV as OData producer. The grid supports paging, sorting and filtering using OData’s query options. To do that we implemented a helper JavaScript routine (defined in an external JavaScript file which is included in the sample project) which is used to bind the grid. Here is how the code looks like: @(Html.Telerik().Grid<TelerikTVODataBinding.Models.Video>() .Name("Grid") .Columns(columns => { columns.Bound(v => v.ImageUrl).Sortable(false).Filterable(false).Width(200).HtmlAttributes(new { style="text-align:center" }); ...
    December 16, 2010
  • 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