New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Server-Side API

Select Continent...
Event log

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>
<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