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

Button and touch events

1 Answer 88 Views
Button
This is a migrated thread and some comments may be shown as answers.
Mickael
Top achievements
Rank 1
Mickael asked on 12 Dec 2014, 04:04 AM
Hi, I would like to know if the Telerik button support touch event?

I am trying to make an image button that I can use both with the mouse click and the touch end events.
The mouse click works well, but for the touch end I have no luck so far.

Help would be very welcomed.

this is what I have so far:

<telerik:RadButton
    ID="RadButton2"
    runat="server"
    Width="32px"
    Height="32px"
    ToolTip="Home"
    style="cursor: pointer;"
    OnClientClicking="OnClientClicking"
    Text=""
    Enabled="true">
    <Image ImageUrl="Images/Home-icon.png"/>
</telerik:RadButton>


1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 12 Dec 2014, 12:02 PM
Hi Mickael,

I am sorry to say that the RadButton doesn't support touch events but the following ones:
If you want to cancel a postback of the button you can set the args.set_cancel(true) method in the OnClientClicking event.


Regards,
Danail Vasilev
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
Button
Asked by
Mickael
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or