Barcode TagHelper Overview
The Telerik UI Barcode TagHelper for ASP.NET Core is a server-side wrapper for the Kendo UI Barcode widget.
The Barcode represents data in a machine-readable format.
The BarCode is part of Telerik UI for ASP.NET Core, a
professional grade UI library with 100+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
Initializing the Barcode
The following example demonstrates how to define the Barcode by using the Barcode TagHelper.
<kendo-barcode name="BarCode"></kendo-barcode>
Basic Configuration
The Barcode TagHelper configuration options are passed as attributes of the tag.
<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)))
)