We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to print the grid when barcode as one of the column?

This knowledge base explains how to print the grid when Syncfusion canvas control such as barcode as one of the grid column using Print feature of Grid.


Using beforePrint event, we can print the grid with column contains syncfusion canvas control (ejBarcode) as one of the column by converting the canvas element into image. Initially we can display the ejBarcode in Grid by using column template feature of grid.

Render the Grid control.

















Define the template in the Index page.






Ts File


Using template property of grid columns, we can add ejBarcode control as one of the grid column. Create an element using jsRender and convert the element to corresponding control by using templateRefresh and dataBound event of the grid.


In beforePrint event, convert the canvas element to image and then print the ejBarcode control.



Figure 1 Grid with barcode control



Figure 2 To print barcode control


Article ID: Published Date: Last Revised Date: Platform: Control:
7627 03/31/2017 11/13/2018 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon