This is a migrated thread and some comments may be shown as answers.

Cannot use pinching on grid on tablet

3 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ABECON Groep BV
Top achievements
Rank 1
ABECON Groep BV asked on 11 Jul 2014, 02:37 PM
I have a page with a grid on it. On all the page I can pinch but on the grid I cannot use it.

Is there a way that I get this working.

Best regards,
Lanzo van Slooten

3 Answers, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 16 Jul 2014, 08:51 AM
Hello,

We are aware of this issue and the proper fix for it will be included in our next official release - Q2 2014 SP1, which will be released next week.

Meantime, you can use the following code as a possible workaround:

Telerik.Web.UI.RadGrid.prototype._swipeMove= function () { };

You should place the code for overriding above the first declaration of grid in your page or just after the declaration of the ScriptManager in your page. Also the code should be placed inside RadScriptBlock if you are using any Ajax/Update Panel.

Regards,
Milena
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mats
Top achievements
Rank 1
answered on 26 Nov 2014, 01:12 PM
I also have this problem. I tried it in Telerik_UI_for_ASP.NET_AJAX_2014_3_1118_Dev_hotfix.

When I pinch or unpinch a grid on a mobile device then the code assigned to ClientSettings.ClientEvents.OnRowDblClick will be called. When I evaluate the type of the event (args.get_domEvent().type) then it will say 'touchend'.

So what is the expected behaviour in this case?

/Mats
0
Marin
Telerik team
answered on 01 Dec 2014, 12:11 PM
Hello,

The OnRowDblClick is intended for use mostly on desktop browser. The pinch gesture will indeed also trigger this event because you are preforming action on the same grid area. On mobile devices there are three major events: touchstart, touchmove and touchend so the underlying DOM event will be one of them. There no specific double click or swipe event for mobile browsers that's why the grid also does not expose such specific events.
If you need any particular event to be fired as a result of some action, let us know so we can provide further detail on how this can be best achieved.

Regards,
Marin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
ABECON Groep BV
Top achievements
Rank 1
Answers by
Milena
Telerik team
Mats
Top achievements
Rank 1
Marin
Telerik team
Share this question
or