Telerik blogs
  • 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

    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 AJAX

    ASP.NET Ajax Controls in ASP.NET MVC - Announcing the sample application

    I am glad to announce that yesterday we released a public sample application built with RadControls for ASP.NET Ajax, ASP.NET MVC and Telerik OpenAccess. You can check the online demo, or download the source code. This application is a basic online forum which uses RadControls in ASP.NET and demonstrates integration with ASP.NET MVC. Here are a few screens from the forum: The "home" page (uses RadTreeView, RadGrid and RadMenu) The "new thread" page (shows RadEditor)
    January 16, 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