Telerik blogs

Latest

For the latest product updates, please visit Release.

  • 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
  • Web ASP.NET MVC

    MVC design template

    We have just uploaded a contribution to Microsoft’s MVC design contest – a web-design template free for all to use with the MVC framework. Our entry is a clean, simple, blue-themed web-design generic enough to fit a broad range of scenarios. Please feel free to download and jumpstart your next project. We thought the contest was a great way to further support our clients in their switch to the MVC. Our RadControls for ASP.NET AJAX already boasts full support for the MVC (see live demo, join our forums), so we thought providing an out-of-the-box design solution is a logical next step. Initiatives like this...
    February 11, 2009
  • Web ASP.NET MVC ASP.NET AJAX

    ASP.NET Ajax Controls in ASP.NET MVC

    The Q3 2008 release is now out and I am glad to inform you that RadScriptManager provides support for ASP.NET MVC view and master pages. What this means is that RadControls for ASP.NET Ajax can be used in ASP.NET MVC. We have tested with the ASP.NET MVC Beta 1 release. .csharpcode { overflow:auto; } .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; } Using RadControls for ASP.NET Ajax in ASP.NET MVC View Pages 1. Add an instance of RadScriptManager to your view page (or master page). Make sure the required HTTP handlers are properly registered (can be done from the smart tag in design time). 2. Add a control to your view page or master page. The following...
    November 06, 2008
  • Web ASP.NET MVC

    The Grid in Microsoft ASP.NET MVC Beta

    As you know this week Microsoft released ASP.NET MVC Beta and I've updated my last grid example to the latest ASP.NET MVC version. I needed to change only two things: - Ajax.Form changed to Ajax.BeginForm/Ajax.EndForm - Html.SubmitButton changed to plain <input type="submit" /> and everything worked instantly! [Live | Download]...
    October 17, 2008