Long press - Long touch

0 Answers 1239 Views
Charts
Nikolas
Top achievements
Rank 2
Iron
Iron
Nikolas asked on 11 Nov 2021, 02:16 PM

Is it possible to run another method, if the user presses and holds on a series for lets say 2 or 3 seconds?

Like in WPF: https://www.telerik.com/forums/long-press-on-a-button-c1515a65de7e

If this makes sense.


Regards,
Nikolas

Hristian Stefanov
Telerik team
commented on 16 Nov 2021, 11:14 AM

Hi Nikolas,

Such an event for holding isn't provided out of the box. However, there might be a possible approach to achieve such functionality in the Blazor framework. As part of my research, I found this StackOverflow article that shows more details for a workaround with the js function. One thing to mention is that the approach is not tested, but using js functions is the way of replacing such events in the framework. You can try and see if it suits your application.

In the meantime, you can share with us possible use cases of an event for holding after clicking.

Thank you, and I look forward to your feedback on how things turned out.

Regards,
Hristian Stefanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

No answers yet. Maybe you can help?

Tags
Charts
Asked by
Nikolas
Top achievements
Rank 2
Iron
Iron
Share this question
or