listview 'read' call freezes page

5 posts, 1 answers
  1. BRAD
    BRAD avatar
    27 posts
    Member since:
    May 2012

    Posted 16 Apr 2015 Link to this post

    I have a page with a listview and a textbox underneath the listview in a pretty basic setup, it's basically a chat tool.  I'm using signalR to tell the listview when it's time to refresh, and when that happens I call a .dataSource.read() on the listview.  This works great, except that the textbox underneath the listview is basically frozen until the read call is done.  Once the read is done, then everything works fine, but the user experience is pretty bad.  Why is my entire page unusable while this read is going on?  Is there a way i can call this asynchronously that i'm not aware of?  Thanks for any help you can provide.
  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 20 Apr 2015 Link to this post

    Hi Brad,

    I am not really sure why this happens - the requests should be asynchronous and non-blocking. I tried reproducing the scenario here, but everything seems to work as expected.

    Regards,
    Alexander Popov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. BRAD
    BRAD avatar
    27 posts
    Member since:
    May 2012

    Posted 27 Apr 2015 Link to this post

    actually it's something more like : http://plnkr.co/edit/z5XNkxprDcIooVf0ZjoI .  I say signalR, but i don't really use kendo's signalR functionality, i just use it as a prompt on when to refresh.  Unfortunately i don't see the problem in my example above.  I'll have to see if i can make it happen in another way, since it definitely happens on my site, but i'm replying now in case this response spurs some 'aha' moment with you.
  5. Answer
    Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 29 Apr 2015 Link to this post

    Hello again Brad,

    I reviewed the example, however I am still not sure what might be causing the issue you described. Let us know once you have an example where the issue is reproduced - that would allow us to investigate further.

    Regards,
    Alexander Popov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  6. BRAD
    BRAD avatar
    27 posts
    Member since:
    May 2012

    Posted 03 Jun 2015 in reply to Alexander Popov Link to this post

    In the end, the problem turned out to be some activity that i had in my 'databound' event.  It was a chat screen, and i was using 1 jscript method to provide tool tips for usernames in the listbox, another jscript to hyperlink any text that might be hyperlinkable, and a 3rd jscript that transformed appropriate text into emoticons.  Just got to be too much in the end.  Taking away those features got rid of the freezing entirely.
Back to Top
UI for ASP.NET MVC is VS 2017 Ready