Rendering issue in large Sencha toch list
I am using Sencha Touch list component which contains around 1000 records.
Scrolling of list is made false.
When I am using it on chrome browser, it works f开发者_如何学Pythonine. But when I run it on iPad safari, it gives Javascript execution exceeded timeout Error. Also,when i select a list item, selection is not rendered properly.
Please, Help me.Its urgent.
Are you doing anything complex in your list-item template? Make sure your template is very simple, as of course it is going to be rendered repeatedly in a loop. Especially stay away from running any sub-template/sub-loops within each item.
For larger lists you might also want to take a look at MahlerFreak's BufferedList component. I'm currently using it in a project with nearlly 10K items with much success.
I've needed to tweak it a little for my use-case, but it's nicely written and easy to work with.
精彩评论