Edit this page

Barcode Tag Helper Overview

The Barcode tag helper helps you configure the Kendo UI Barcode widget in ASP.NET Core applications.

Basic Usage

The following example demonstrates how to define the Barcode by using the Barcode tag helper.

Example
    <kendo-barcode name="BarCode"></kendo-barcode>

Configuration

The Barcode tag helper configuration options are passed as attributes of the tag.

Example
    <kendo-barcode name="barcode" value="10110110" type="BarcodeSymbology.Code128" width="200" height="100">
        <border color="red" width="2"/>
    </kendo-barcode>

    @(Html.Kendo().Barcode()
    .Name("gudbrands")
    .Value("10110110")
    .Encoding(BarcodeSymbology.Code128)
    .Width(200)
    .Height(100)
    .Border(border => border.Color("red").Width(2)))
)

See Also