ComboBox

Controls

Rate this demo

Thank you for your post!
Submit a support ticket
If you have an active license or trial, you have access to dedicated support from Telerik’s developers. Response time is 24h for active licenses and 72h for trials, Mon-Fri.
Post in the forums
If you don’t have access to support or would like to help other people by sharing your problem, reach out to our active community in the forums.

ComboBox - WCF Web Service

  1. Open the combobox to get the first 10 items.
  2. Click the button in the dropdown to load the next 10 items.
  3. Type in some text to filter.

This example demonstrates how to populate RadComboBox from WCF Web Service. You need to point to an existing web service and method:

<telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px" Skin="Vista"
	EnableLoadOnDemand="true">
	<WebServiceSettings Path="ComboBoxWcfService.svc" Method="LoadData" />
</telerik:RadComboBox>
C# VB
Show code in new window Demo isolation steps
<%@ Page Language="C#"  %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
    <title>ASP.NET ComboBox Demo - WCF Web Service</title>
</head>

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />

     <div class="qsf-demo-canvas">
          <telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px" EnableLoadOnDemand="true"
               ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Type here ...">
               <WebServiceSettings Path="ComboBoxWcfService.svc" Method="LoadData" />
          </telerik:RadComboBox>
     </div>

    </form>
</body>
</html>