DropDownList - Server-Side API

Select Continent...

Event log

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

RadDropDownList provides various server events that can be used to accomplish even the most difficult tasks. To fire a server-side event which requires a postback the AutoPostBack property should be enabled. Such event is the SelectedIndexChanged event.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="DropDownList.Examples.Programming.ServerSide.DefaultCS" %>

<!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 runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">

        <div class="demo-container size-thin">
            <telerik:RadDropDownList RenderMode="Lightweight" ID="RadDropDownList1"
                runat="server"
                
                Width="300px"
                AutoPostBack="true"
                DefaultMessage="Select Continent..."
                OnItemSelected="RadDropDownList1_ItemSelected"
                OnSelectedIndexChanged="RadDropDownList1_SelectedIndexChanged">
            </telerik:RadDropDownList>
        </div>

        <qsf:EventLogConsole runat="server" ID="EventLogConsole1" AllowClear="true" />

    </telerik:RadAjaxPanel>

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

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?