Class
CommonHelper

Represents a common helper class.

Definition

Namespace:Telerik.WebAii.Controls.Html

Assembly:Telerik.WebAii.Controls.Html.dll

Syntax:

cs-api-definition
public static class CommonHelper

Inheritance: objectCommonHelper

Methods

GenArray(int)

A helper method to generate an array of integers with given count.

Declaration

cs-api-definition
public static int[] GenArray(int count)

Parameters

count

int

The count of the array elements.

Returns

int[]

An array of integers with given count.

GetControl(Element)

Get the HtmlControl type of the given element.

Declaration

cs-api-definition
public static HtmlControl GetControl(Element element)

Parameters

element

Element

The element to get the control type of.

Returns

HtmlControl

The HtmlControl type of the given element.

GetControlType(Element)

Get the control type of the given element.

Declaration

cs-api-definition
public static Type GetControlType(Element element)

Parameters

element

Element

The element to get the control type of.

Returns

Type

The control type of the given element.

GetInputControl(Element)

Get the HtmlInputControl type of the given element.

Declaration

cs-api-definition
public static HtmlInputControl GetInputControl(Element element)

Parameters

element

Element

The element to get the control type of.

Returns

HtmlInputControl

The HtmlInputControl type of the given element.

GetInputControlType(Element)

Get the input control type of the given element.

Declaration

cs-api-definition
public static Type GetInputControlType(Element element)

Parameters

element

Element

The element to get the input control type of.

Returns

Type

The input control type of the given element.

RemoveWhiteSpaces(string)

A helper method for removing whitespaces from strings.

Declaration

cs-api-definition
public static string RemoveWhiteSpaces(string stringToModify)

Parameters

stringToModify

string

The string to modify.

Returns

string

The string without whitespaces.