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

listview 'read' call freezes page

4 Answers 64 Views
ListView
This is a migrated thread and some comments may be shown as answers.
BRAD
Top achievements
Rank 1
BRAD asked on 17 Apr 2015, 03:29 AM
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.

4 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 20 Apr 2015, 01:03 PM
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.

 
0
BRAD
Top achievements
Rank 1
answered on 27 Apr 2015, 11:00 PM
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.
0
Accepted
Alexander Popov
Telerik team
answered on 29 Apr 2015, 02:20 PM
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.

 
0
BRAD
Top achievements
Rank 1
answered on 04 Jun 2015, 03:08 AM
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.
Tags
ListView
Asked by
BRAD
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
BRAD
Top achievements
Rank 1
Share this question
or