CheckBoxList - DataBinding Events

Event log

  • CheckBoxList is data binding.
  • Item (Soft drinks, coffees, teas, beers, and ales) is created.
  • Item (Soft drinks, coffees, teas, beers, and ales) is data bound.
  • Item (Sweet and savory sauces, relishes, spreads, and seasonings) is created.
  • Item (Sweet and savory sauces, relishes, spreads, and seasonings) is data bound.
  • Item (Desserts, candies, and sweet breads) is created.
  • Item (Desserts, candies, and sweet breads) is data bound.
  • Item (Cheeses) is created.
  • Item (Cheeses) is data bound.
  • Item (Breads, crackers, pasta, and cereal) is created.
  • Item (Breads, crackers, pasta, and cereal) is data bound.
  • Item (Prepared meats) is created.
  • Item (Prepared meats) is data bound.
  • Item (Dried fruit and bean curd) is created.
  • Item (Dried fruit and bean curd) is data bound.
  • Item (Seaweed and fish) is created.
  • Item (Seaweed and fish) is data bound.
  • CheckBoxList is data bound.
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

RadCheckBoxList exposes the standard ASP.NET WebForms data-binding events:

  • OnDataBinding
  • OnDataBound
  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.CheckBoxList.Configurator.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" />
    <div class="demo-container size-wide">
        <telerik:RadCheckBoxList runat="server" AutoPostBack="false" ID="CheckBoxList1" DataSourceID="SqlDataSource1"
            OnDataBinding="CheckBoxList1_DataBinding"
            OnDataBound="CheckBoxList1_DataBound"
            OnItemCreated="CheckBoxList1_ItemCreated"
            OnItemDataBound="CheckBoxList1_ItemDataBound">
            <Databindings DataTextField="Description" DataValueField="CategoryID" />
        </telerik:RadCheckBoxList>
    </div>

    <asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        ProviderName="System.Data.SqlClient" SelectCommand="SELECT [CategoryID], [Description] FROM [Categories]" />

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

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?