Barcode HtmlHelper Overview

The Barcode HtmlHelper extension is a server-side wrapper for the Kendo UI Barcode widget.


  1. Add a Barcode.

          .Name("barcode") // The name of the Barcode is mandatory. It specifies the "id" attribute of the widget.
          .Value("2346722") // Set the value of the Barcode.
  2. Choose the appropriate symbology (encoding) from the available options. Specify it through the encoding method which accepts an enum value.



Existing Instances

To reference an existing Kendo UI Barcode instance, use the configuration option. Once a reference is established, use the Barcode API to control its behavior.

  //Put this after your Kendo UI Barcode for ASP.NET Core declaration.
  $(function() {
      //Notice that the Name() of the Barcode is used to get its client-side instance.
      var barcode = $("#barcode").data("kendoBarcode");
      barcode.value("foo") //make sure you supply valid value for that encoding then the barcode will redraw automatically

See Also

In this article
Not finding the help you need? Improve this article