Barcode - Integration with RadListView

Product: Wooden Table
Manufacturer: Molzano Italy
Price: 3534.0000
Dimensions: 1.2 x 0.8
Quantity: 3
Product: Glass Table
Manufacturer: Ovalia Germany
Price: 546.0000
Dimensions: 1.4 x 0.9
Quantity: 5
Product: Black Leather Couch
Manufacturer: Spidea England
Price: 4565.0000
Dimensions: 2.6 x 0.7
Quantity: 4
Product: Red Leather Couch
Manufacturer: Pront Italy
Price: 1534.0000
Dimensions: 2.5 x 0.8
Quantity: 4
Product: Lounge
Manufacturer: Procren Hungary
Price: 356.0000
Dimensions: 3.0 x 0.8
Quantity: 3
Product: Black Sofa
Manufacturer: Ovalia Germany
Price: 657.0000
Dimensions: 0.7 x 1.0
Quantity: 1
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

RadBarcode allows you to easily visualize text as Barcode using the popular Barcode standards. The control can be integrated with wide range of controls. This example demonstrates how to embed RadBarcode control in RadListView.

  • DefaultCS.aspx
  • styles.css
<%@ Page Language="c#"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link type="text/css" rel="Stylesheet" href="styles.css" />
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <telerik:RadFormDecorator RenderMode="Lightweight" ID="RadFormDecorator1" runat="server" DecorationZoneID="decoration-zone" DecoratedControls="Fieldset" />
    <div class="demo-container" id="decoration-zone">
        <telerik:RadListView ID="RadListView1" DataSourceID="SqlDataSource1" runat="server"
                    <asp:PlaceHolder ID="ProductsContainer" runat="server"></asp:PlaceHolder>
                <fieldset class="lvidemo-fieldset">
                    <table cellpadding="0" cellspacing="0" class="lvidemo-table">
                                <%# Eval("Price")%>
                                <%# Eval("Dimensions")%>
                            <td style="width: 50%">
                            <td style="width: 50%">
                    <telerik:RadBarcode ID="RadBarcode1" runat="server" Type="EAN8" Text='<%#Eval("ID")%>'
                        ShowText="true" ShortLinesLengthPercentage="80" Width="100px" Height="70px" Style="font-size: 15px;">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT TOP 6 * FROM [Products]">

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?