New to Telerik UI for BlazorStart a free 30-day trial

Barcode Encoding

Encoding (symbology) represents the mapping between messages and barcodes.

You can choose which supported encoding to use by setting the Type parameter of the component. The following table lists the available symbologies and their specifications supported by the Barcode.

If the value of a particular encoding does not meet the expected length or character set, the barcode will not be shown.

Explore the Barcode Type options

@*Choose a type from the dropdown*@

<div style="display: flex">
    <div style="display: inline">
        <select @bind="BarcodeType">
            @foreach (var possibleType in Enum.GetValues(typeof(BarcodeType)))
            {
                <option value="@possibleType">@possibleType</option>
            }
        </select>
    </div>

    <TelerikBarcode @ref="myBarcode" Width="300px"
                    Height="200px"
                    Type="@BarcodeType"
                    Value="123456789">
    </TelerikBarcode>
</div>

@code {
    TelerikBarcode myBarcode;
    BarcodeType BarcodeType { get; set; } = BarcodeType.Code39;
}
SYMBOLOGYCHARACTER SETLENGTHCHECK DIGITS
Code 39 (default)[A-Z]; [0-9]; [ - . $ / + % ]variable (avg. up to 20 chars)optional (Mod. 43)
Code39ExtendedASCII (128 characters)variableoptional (Mod. 43)
Code 93[0-9];[A-Z];[SPACE . + - / % $]variable2 check digits
Code93ExtendedASCII(128 characters)variable2 check digits
EAN-13numeric [0..9]12 usable digits1 check digit
EAN-8numeric [0..9]7 usable digits1 check digit
UPC-Anumeric [0..9]11 usable digits (first is always 0)1 check digit
UPC-Enumeric [0..9]6 usable digits (first is always 0)1 check digit
POSTNETnumeric [0..9]variable1 check digit
Code 11[0-9]; [-]variable1 or 2 based on length
Code128LATIN-1 (ISO-8859-1)variable1 check digit
Code128AASCII 00 to 95 (0-9, A-Z and control codes), special charactersvariable1 check digit
Code128BASCII 32 to 127 (0-9, A-Z, a-z), special charactersvariable1 check digit
Code128CASCII 00-99 (encodes each two digits with one code)variable1 check digit
GS1-128depending on Application Identifiervariable1 check digit
MSImod10numeric [0..9]variable1 check digit
MSImod11numeric [0..9]variable1 check digit
MSImod1010numeric [0..9]variable1 check digit
MSImod1110numeric [0..9]variable1 check digit

See Also

In this article
See Also
Not finding the help you need?
Contact Support