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...
I’m happy to announce two new episode of RadTips, a series of screencasts offering tips and tricks for using Telerik's RadControls. If you've missed previous episodes, be sure to check them out on Telerik TV. Each is only a few minutes long and covers a specific feature of the RadControls. Grouping with the RadGrid In this episode I show ASP.NET AJAX developers how to using the built-in grouping feature of the RadGrid. I start by demonstrating how you can enable dynamic grouping by setting just a couple of properties, allowing users to group data at runtime. Next I demonstrate how to...
When you add a new page to your Web site, do you often find yourself cutting and pasting from another page to get started? If you're spending more time importing controls and setting up content regions for your master page than actually working on the new page, you might want to look into creating a "RadControls T4 Item Template" in Visual Studio with “RadControls for ASP.NET AJAX VS Extensions” Below is a basic way to get started with a “RadControls for ASP.NET AJAX” T4 Item Templates. To create your own RadControls T4 Item Template: Create a file – (MyTemplate.t4). 2. Create a file...
In case you missed the announcement last week, check out Erjan's blog post about our new product called RadControls for ASP.NET AJAX VS Extensions (Click here to download it). It works with both Visual Studio 2008 and Visual Studio 2005 and expands the capabilities of the IDE by allowing developers to create RadControls Item templates. RadControls for ASP.NET AJAX VS Extensions using T4 (Text Template Transformation Toolkit) to generate the code behind the scenes when an Item Template is added to a project. T4 is a fully customizable text generator based on templates. Anyone can create or edit such a template...
Telerik continues helping you deliver more than expected
“Hello, world!”
I decided to start my post with these magic words to present you the latest addition to the RadControls for ASP.NET AJAX product line: Visual Studio Extensions – the product that makes the development of WebSite/WebApplication with Telerik RadControls faster and easier. A programmer’s very first application is at the distance of starting the IDE and typing the magic words. Creating a RadControls web application is now at a few clicks distance as well.
The Visual Studio Extensions aids the Visual Studio Web development from two perspectives – web configuration and...