New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadSignature object

This article lists the client-side API of RadSignature and shows how to use it.

To use the API, you must first get a reference to the control's client-side object. For example:

JavaScript
var signature = $find("<%=RadSignature1.ClientID %>");

Signature UI component for ASP.NET AJAX is a server-side wrapper over the Kendo UI Signature Widget. Thus, it exposes the API of the underlying Kendo widget. To get a reference to the Kendo widget instance, you can do either of the following:

  • Use the get_kendoWidget() method of the MS AJAX wrapper:
JavaScript
var signature  = $find("<%=RadSignature1.ClientID %>"); //the standard script control object
var kendoSignature = signature.get_kendoWidget(); //the Kendo widget
  • Get the Kendo Widget in its usual way. Make sure to use the $telerik.$ jQuery reference:
JavaScript
var kendoSignature = $telerik.$("#<%=RadSignature1.ClientID %>").data("kendoSignature"); 

In addition to using the Kendo methods directly, you can also use their wrappers that follow the MS AJAX convention through the RadSignature client object.

Table1: Client-side methods exposed by the MS AJAX RadSignature object

NameParametersReturn TypeDescription
disposenonenoneDestroys the underlying Kendo widget (calls its destroy method). Once you call it, you will not be able to use the widget or control.
opennonenoneOpens the Signature PopUp pad.
closenonenoneCloses the Signature PopUp pad if opened.
disablenonenoneDisables the Signature control.
enablenonenoneEnables the Signature control.
resetnonenoneResets the value of the Signature control to empty string.
get_backgroundColornonestringGets the background color of the Signature pad.
set_backgroundColorstringnoneSets the background color of the Signature pad.
get_enablednoneBooleanIndicates whether the Signature is enabled.
set_enabledBooleannoneEnables/Disables the Signature Control.
get_fillModenonestringGets the current FillMode of the Signature.
set_fillModestringnoneSets the FillMode of the Signature.
get_hideLinenoneBooleanIndicates whether the dotted line in the Signature Pad is hidden.
set_hideLineBooleannoneSets whether the dotted line in the Signature Pad to be hidden.
get_maximizablenoneBooleanIndicates whether the control can be maximized.
set_maximizableBooleannoneSets whether the control can be maximized.
get_popupScalenoneNumberGets the current scale of the Signature PopUp.
set_popupScaleNumbernoneSets the current scale of the Signature PopUp.
get_sizenonestringGets the current size of Signature UI control.
set_sizestringnoneSets the current size of Signature UI control.
get_roundednonestringGets the current value of the Rounded property of Signature control.
set_roundedstringnoneSets the current value of the Rounded property of Signature control.
get_strokeWidthnoneNumberGets the current width of the stroke line of Signature control.
set_strokeWidthNumbernoneSets the current width of the stroke line of Signature control.
get_valuenonestringGets the current base64 string value of the component.
set_valuestringnoneSets the current base64 string value of the component.

See Also

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