Skip to content

Commit affc601

Browse files
author
Desislava Mihaylova
authored
Revamp the Mobile Support section (#406)
* start reviewing the mobile support section * revamp mobile support section * reorder as agreed
1 parent 4ef2689 commit affc601

10 files changed

+293
-468
lines changed

_config.yml

+31-34
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,39 @@ all_pages_domain: "https://docs.telerik.com/devtools"
1212
navigation:
1313

1414
## List common directory names and order here, like this:
15+
"api":
16+
title: "API Reference"
17+
position: 0
1518
"getting-started":
1619
title: "Getting Started"
17-
position: 1
20+
position: 2
21+
"controls":
22+
title: "Controls"
23+
position: 3
24+
"styling":
25+
title: "Styles & Appearance"
26+
position: 4
27+
"deployment":
28+
title: "Deployment"
29+
position: 5
30+
"shared-utilities":
31+
title: "Shared Utilities"
32+
position: 6
33+
"integration":
34+
title: "Integration"
35+
position: 7
36+
"mobile-support":
37+
title: "Mobile Support"
38+
position: 8
39+
"accessibility":
40+
title: "Accessibility"
41+
position: 9
42+
"upgrade-compatibility":
43+
title: "Upgrade & Compatibility"
44+
position: 10
45+
"knowledge-base":
46+
title: "Knowledge Base"
47+
position: 30
1848
"getting-started/installation":
1949
title: "Download & Installation"
2050
position: 10
@@ -24,24 +54,6 @@ navigation:
2454
"getting-started/performance":
2555
title: "Performance"
2656
position: 30
27-
"mobile-support":
28-
title: "Mobile Support"
29-
position: 5
30-
"deployment":
31-
title: "Deployment"
32-
position: 6
33-
"controls":
34-
title: "Controls"
35-
position: 12
36-
"shared-utilities":
37-
title: "Shared Utilities"
38-
position: 13
39-
"licensing":
40-
title: "Licensing"
41-
position: 29
42-
"styling":
43-
title: "Styles & Appearance"
44-
position: 14
4557
"styling/controlling-visual-appearance":
4658
title: "Controlling the Appearance"
4759
position: 10
@@ -51,12 +63,6 @@ navigation:
5163
"styling/theme-builder":
5264
title: "Theme Builder"
5365
position: 30
54-
"accessibility":
55-
title: "Accessibility"
56-
position: 17
57-
"integration":
58-
title: "Integration"
59-
position: 15
6066
"integration/jquery":
6167
title: "jQuery"
6268
"integration/sharepoint":
@@ -140,15 +146,9 @@ navigation:
140146
title: "TypeScript Definitions"
141147
"integration/visual-studio/visual-studio-extensions":
142148
title: "Visual Studio Extensions"
143-
"upgrade-compatibility":
144-
title: "Upgrade & Compatibility"
145-
position: 16
146149
"upgrade-compatibility/upgrading-instructions":
147150
title: "Upgrading"
148151
position: 10
149-
"api":
150-
title: "API Reference"
151-
position: 30
152152
"api/client":
153153
title: "Client-side"
154154
position: 1
@@ -159,9 +159,6 @@ navigation:
159159
"api/server":
160160
title: "Server-side"
161161
position: 2
162-
"knowledge-base":
163-
title: "Knowledge Base"
164-
position: 40
165162

166163
## List control directory names and order here, like this:
167164
"controls/ajaxpanel":

introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "The Telerik UI for ASP.NET AJAX components suite includes more tha
55
slug: introduction/introduction
66
tags: introduction
77
published: True
8-
position: 0
8+
position: 1
99
---
1010

1111
# Welcome to Telerik UI for ASP.NET AJAX

mobile-support/gestures-support.md

+21-25
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
11
---
2-
title: Gestures Support
3-
page_title: Gestures Support
4-
description: Check our Web Forms article about Gestures Support.
2+
title: Gesture Support
3+
page_title: Gesture Support
4+
description: "Learn about the gesture support provided by Telerik UI for ASP.NET AJAX controls."
55
slug: introduction/radcontrols-for-asp.net-ajax-fundamentals/mobile-support/gestures-support
6-
tags: gestures,support
6+
tags: telerik, aspnet, ajax, mobile, support, gestures
77
published: True
8-
position: 3
8+
position: 4
99
---
1010

11-
# Gestures Support
11+
# Gesture Support
1212

13-
Some controls from the UI for ASP.NET AJAX suite can react to touch gestures in order to perform a certain action according to the control specifics.A tap gesture is available for any clickable element.Controls where scrolling is needed and available react to the scrolling gestures.Here follows a list with the controls that handle specific gestures, and the actions they perform.
13+
By default, some Telerik UI for ASP.NET AJAX controls support touch gestures for performing certain actions.
1414

15-
* [**Grid**]({%slug grid/mobile-support/mobile-rendering/overview%}) — drag to scroll the tableview or perform swipe with two active points to go to the next/previous page.
15+
All clickable elements support tap gestures. Scrollable controls support scrolling gestures.
1616

17-
* [**Editor**]({%slug editor/mobile-support/overview%}) - tap or double tap to activate a button (tool) or choose an item from a list; drag to scroll (e.g., the content area or the list of tools). Double tap acts like a single tap. Pinch gestures are cancelled by the control to prevent zooming, both in the main editor view and in the dialogs.
18-
19-
* [**ImageGallery**]({%slug imagegallery/mobile-support/gestures%}) — swipe to navigate the images, thumbnails and show/hide the thumbnails area;tap and hold to toggle the slideshow feature; double tap to enter/exit full screen mode; tap on an image to navigate to the page pointed by the **NavigateUrl** property.
20-
21-
* [**LightBox**]({%slug lightbox/mobile-support/gestures-support%}) — swipe to navigate the images or tap on the image to hide the **navigation arrows** (if visible) and the **description box** (when overlay mode is enabled).
22-
23-
* [**Map**]({%slug map/mobile-support/gestures-support%}) — drag the layer to pan; spread or pinch to zoom in or zoom out.
24-
25-
* **Rotator** — drag an item to scroll the rotator.
26-
27-
* **Slider** — drag both of the slider's drag handles simultaneously to change its selected region.
28-
29-
* **TileList** — drag a tile to move it; short vertical drag to select a tile.
30-
31-
* **Window** — drag the title bar to move the window.
32-
33-
* [**Drawer**]({%slug drawer/functionality/gestures%}) — swipe to reveal the full content of the RadDrawer control.
17+
The following table lists the controls that handle specific gestures, and the actions they perform.
3418

19+
|Control|Gesture and Action
20+
|:---|:---
21+
|[Grid]({%slug grid/mobile-support/mobile-rendering/overview%})|<ul><li>Drag to scroll the table view.</li> <li>Swipe with two active points to go to the next or previous page.</li></ul>
22+
|[Editor]({%slug editor/mobile-support/overview%})|<ul><li>Tap or double-tap to activate a button (tool) or choose an item from a list.</li> <li>Drag to scroll (for example, the content area or the list of tools). Double-tap acts like a single tap.</li> <li>Pinch gestures are cancelled by the control to prevent zooming, both in the main editor view and in the dialogs.</li></ul>
23+
|[ImageGallery]({%slug imagegallery/mobile-support/gestures%})|<ul><li>Swipe to navigate the images, thumbnails, and show or hide the thumbnails area.</li> <li>Tap and hold to toggle the slideshow feature.</li> <li>Double-tap to enter or exit the full screen mode.</li> <li>Tap on an image to navigate to the page pointed by the `NavigateUrl` property.</li></ul>
24+
|[LightBox]({%slug lightbox/mobile-support/gestures-support%})|Swipe to navigate the images or tap on the image to hide the navigation arrows (if visible) and the description box (when the overlay mode is enabled).
25+
|[Map]({%slug map/mobile-support/gestures-support%})|<ul><li>Drag the layer to pan.</li> <li>Spread or pinch to zoom in or zoom out.</li></ul>
26+
|Rotator|Drag an item to scroll the rotator.
27+
|Slider|Simultaneously drag both drag handles of the Slider to change its selected region.
28+
|TileList|<ul><li>Drag a tile to move it.</li> <li>Perform a short vertical drag to select a tile.</li></ul>
29+
|Window|Drag the title bar to move the window.
30+
|[Drawer]({%slug drawer/functionality/gestures%})|Swipe to reveal the full content of the Drawer.

mobile-support/mobile-browsers-specifics.md

+26-20
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,47 @@
11
---
2-
title: Mobile Browsers Specifics
3-
page_title: Mobile Browsers Specifics
4-
description: Check our Web Forms article about Mobile Browsers Specifics.
2+
title: Mobile Browser Specifics
3+
page_title: Mobile Browser Specifics
4+
description: "Learn about the mobile browser support that comes with Telerik UI for ASP.NET AJAX."
5+
previous_url: mobile-support/using-the-telerik-controls-in-mobile-browsers
56
slug: introduction/radcontrols-for-asp.net-ajax-fundamentals/mobile-support/mobile-browsers-specifics
6-
tags: mobile,browsers,specifics
7+
tags: telerik, aspnet, ajax, mobile, support, browser, specifics
78
published: True
8-
position: 4
9+
position: 5
910
---
1011

11-
# Mobile Browsers Specifics
12+
# Mobile Browser Specifics
1213

13-
Most smartphone mobile browsers currently on the market are fairly advanced and Telerik® UI for ASP.NET AJAX work on them with little or no modifications.
14+
Telerik UI for ASP.NET AJAX supports most current mobile browsers with some modifications.
1415

16+
## Considerations
1517

16-
However there are certain specifics in these browsers that one needs to know in order to have Telerik controls working to their full extent:
18+
The following list shows the specifics you need to consider when working with Telerik UI for ASP.NET AJAX controls:
1719

18-
* **Hover events are fired on touch/click** since there is no actual hover in touch screen devices. This also means that elements shown on hover will be shown on click. For instance to see the submenus in RadMenu, **don’t set NavigateUrls on expandable items;**
20+
* Because no actual hover exists on touch screen devices, hover events are fired on touch or click. This also means that elements shown on hover will be shown on click. For example, to see the submenus in the Menu, don’t set `NavigateUrls` on expandable items.
1921

20-
* **Double click is usually reserved for zoom** and is not fired as event;
22+
* Double-click is usually reserved for zoom and is not fired as an event.
2123

22-
* Some browsers **show a context menu on touch & hold** but a **contextmenu event is either not fired and/or the browser menu can’t be cancelled**. Touch & hold event can be implemented manually, but more on this later;
24+
* Some browsers show a context menu on touch-and-hold but a `contextmenu` event is either not fired or the browser menu can’t be cancelled. You can manually implement the touch-and-hold event.
2325

24-
* **Scrolling** in mobile browsers is usually **handled with drag gestures**, which means that **"normal" drag&drop is not working;**
26+
* Scrolling in mobile browsers is usually handled with drag gestures and, therefore, the regular dragging and dropping is not working.
2527

26-
* Clicking on editable input elements will bring up the virtual keyboard whenever necessary, so the visible space is shrunk;
28+
* Clicking on editable `input` elements shows the virtual keyboard and the visible space is shrunk.
2729

28-
* **Scrolling containers** in Mobile Safari are rendered with overflow: hidden and **can only be scrolled with two finger drag gesture**. We developed a special TouchScrollExtender client control to handle this, check the appropriate topic in this section;
30+
* Scrolling containers in Safari are rendered with `overflow: hidden` and can only be scrolled with a two-finger drag gesture. For handling such cases, Telerik UI for ASP.NET AJAX provides the `TouchScrollExtender` client control.
2931

30-
* **ContentEditable is not supported in Mobile Safari up to iOS 4.0**, which means that RadEditor will be rendered as a simple textarea.
32+
* `ContentEditable` is not supported in Mobile Safari iOS v. 4.0 and earlier, which means that the Editor will be rendered as a simple text area.
3133

32-
* **Mobile Safari versions before iOS 6 do not support input elements with type="file"**, so it will be rendered as **disabled** (hence RadAsyncUpload/RadUpload won’t work).
34+
* Mobile Safari v. iOS 6 and earlier do not support `input` elements with `type="file"` so it will be rendered as disabled and the AsyncUpload and Upload won’t work.
3335

34-
Some browsers implemented special touch events for mobile devices - namely **touchstart, touchmove** and **touchend** in Mobile Safari and **MozTouchDown, MozTouchMove** and **MozTouchUp** in Mozilla Mobile Firefox (Fennec) which can be used to overcome some of the listed problems. Unfortunately **IE7+ in Microsoft Windows Phone 7 and both mobile Opera browsers do not have touch events support of either kind**, so they are automatically falling out of scope for this article and should be handled as normal desktop browsers if possible.
36+
Some browsers provide special touch events for mobile devices, for example, Mobile Safari delivers `touchstart`, `touchmove`, and `touchend`, and Mozilla Mobile Firefox (Fennec) delivers `MozTouchDown`, `MozTouchMove`, and `MozTouchUp` which can be used to overcome some of the considerations above.
3537

36-
### Implementing Touch & Hold event
38+
IE7+ in Microsoft Windows Phone 7 and both mobile Opera browsers do not provide touch events support of either kind and will be treated as regular desktop browsers if possible.
3739

38-
Since most mobile browsers do not support context menu event properly, we will need to handle it ourselves. This can be done using a click event and a timeout and to raise the context menu event we will need the original event coordinates. For instance let’s get a RadScheduler (it has two context menu events):
40+
## Touch-and-Hold Event
41+
42+
Most mobile browsers do not support the `contextmenu` event properly and you have to handle it by using a `click` event and a timeout. To raise the `contextmenu` event, you will need the original event coordinates.
43+
44+
The following example demonstrates how to get a Scheduler which has two `contextmenu` events:
3945

4046
````ASP.NET
4147
<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedDate="2009-02-02"
@@ -50,7 +56,7 @@ Since most mobile browsers do not support context menu event properly, we will n
5056

5157

5258

53-
And add this JavaScript to fire the context menu events when touch and hold for a second in Mobile Safari:
59+
Then, you need to add the following JavaScript to fire the `contextmenu` events when the user touches and holds on Mobile Safari:
5460

5561
````JavaScript
5662
var lastArgs = null;

0 commit comments

Comments
 (0)