support

A range of useful supported by the current browser capabilities and features.

support

touch Boolean

Return true if the browser supports touch events.

pointers Boolean

Return true if the browser supports pointer events (IE10 and Metro apps currently).

scrollbar Function

Checks for the browser scrollbar width, returns scrollbar width in pixels, 0 if no scrollbars available (e.g. in mobile).

hasHW3D Boolean

Return true if the browser supports 3D transitions and transforms.

hasNativeScrolling Boolean

Returns true if the browser supports overflow-scrolling CSS property (currently only iOS 5+).

devicePixelRatio Number (default: 1)

Returns the current device's Device to Pixel Ratio. Doesn't work in Windows Phone 8, where IE10 doesn't support it.

placeholder Boolean

Returns true if the browser supports input placeholders.

zoomLevel Number (default: 1)

Returns the current zoom level on a mobile browser (returns 1 on desktop).

support.mobileOSObject

Returns a number of properties that identify the current mobile browser. Parses navigator.userAgent to do it. False on desktop.

support.mobileOS

device String

Returns the current mobile device identifier, can be "fire", "android", "iphone", "ipad", "meego", "webos", "blackberry", "playbook", "wp", "windows".

tablet String (default: false)

Returns the current tablet identifier or false if the current device is not a tablet, can be "fire", "ipad", "playbook" or false.

browser String (default: "default")

Returns the current browser identifier or "default" if the browser is the native one, can be "omini", "omobile", "firefox", "mobilesafari", "webkit", "ie", "default".

name String

Returns the current os name identifier, can be "ios", "android", "blackberry", "windows", "webos", "meego". For convenience a property with the os name is also initialized, for instance:

js
if (kendo.support.mobileOS.android) {
    // Do something in Android
}
majorVersion String

The current OS major version, e.g. "5" in iOS 5.1.

minorVersion String

The current OS minor versions, e.g. "1.1" in iOS 5.1.1.

flatVersion Number

A convenience property to allow easier version checks, for instance:

js
var os = kendo.support.mobileOS;
if (os.ios && os.flatVersion >= 400 && os.flatVersion < 500) {
    // Do something in iOS 4.x
}
appMode Boolean

Returns true if running in application mode - pinned to desktop in iOS or running in PhoneGap/WebView.

cordova Boolean

Returns true if running in a Cordova/PhoneGap/Telerik AppBuilder application.

support.browserObject

Convenience replacement for the now deprecated jQuery.browser. It returns an object with the browser identifier initialized as a boolean property and a version. The identifiers are identical to jQuery ones, e.g. "webkit", "opera", "msie", "edge" and "mozilla". In addition WebKit browsers will return their name e.g. "safari" and "chrome".

<script>
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(kendo.stringify(kendo.support.browser));
    // Chrome will return this object: { "webkit": true, "chrome": true, "version": 37 }
    // IE11 will return this one: { "msie": true, "version": 11 }
</script>

support.browser

version Number

The current browser major version, e.g. "7" in Internet Explorer 7.