New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

QRCode

Class

The server side wrapper for the Kendo UI QRCode.

Definition

Constructors

C#
public QRCode(ViewContext viewContext, IJavaScriptInitializer initializer)
Parameters:viewContextViewContextinitializerIJavaScriptInitializer

Properties

Gets or sets the QRCode background.

C#
public string Background { get; set; }
Property Value:

The QRCode background.

Gets the border configuration.

C#
public QRBorder Border { get; }

Gets or sets the QRCode color.

C#
public string Color { get; set; }
Property Value:

The QRCode color.

Gets or sets the QRCode encoding.

C#
public QREncoding Encoding { get; set; }
Property Value:

The QRCode encoding.

Gets or sets the QRCode error correction level.

C#
public QRErrorCorrectionLevel ErrorCorrection { get; set; }
Property Value:

The QRCode error correction level.

C#
protected virtual Dictionary<string, object> Options { get; set; }

The overlay configuration which alows you to choose from predefined layouts or insert a custom image.

C#
public QRCodeOverlay Overlay { get; set; }

Gets or sets the QRCode padding.

C#
public int? Padding { get; set; }
Property Value:

The QRCode padding.

Gets or sets the render type.

C#
public RenderingMode? RenderAs { get; set; }
Property Value:

The render type.

Gets or sets the QRCode size.

C#
public int? Size { get; set; }
Property Value:

The QRCode size.

Gets or sets the QRCode value.

C#
public string Value { get; set; }
Property Value:

The QRCode value.

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)