Search code examples
asp.net-mvcdevextreme

how to pull down to refresh entire page ASP.NET MVC when browsing with mobile?


I am creating an ASP.NET MVC application which require user to pull down to refresh when browsing the website using mobile phone. How can I do that? I don't even know how the machine recognise the gesture of pulling down to the top and intend to refresh, any suggestion?


Solution

  • There are many Pull-To-Refresh plugins, here to list some of:

    However, if you prefer to handle swipe detection yourself without using plugins, you can do so by taking touchstart,touchend,mouseup,mousedown events into account. This thread provides you with good insights : How to detect Pull to refresh