Edit this page

Barcode JSP Tag Overview

The Barcode JSP tag is a server-side wrapper for the Kendo UI Barcode widget.

Getting Started


Below are listed the steps for you to follow when configuring the Kendo UI Barcode.

Step 1 Make sure you followed all the steps from the introductory article on Telerik UI for JSP.

Step 2 Create a new action method to render the view.

    @RequestMapping(value = {"/", "/index"}, method = RequestMethod.GET)
    public String index() {
        return "/dataviz/barcode/index";

Step 3 Add a barcode with the default type (Code39).

    <kendo:barcode name="barcode" value="foo">

Step 4 Change the symbology to match your scenario.

    <kendo:barcode name="barcode" type="ean8" value="2346722">


Existing Instances

You are able to reference an existing Barcode instance via jQuery.data(). Once a reference is established, you are able to use the Barcode API to control its behavior.

    //Put this after your Kendo UI Barcode tag
    $(function() {
        // Notice that the name of the barcode is used to get its client-side instance
        var barcode = $("#barcode").data("kendoBarcode");

See Also

Other articles on Telerik UI for JSP and on the Barcode:

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article