I have an AutoComplete control that is bound with to a DataSource with remote data. When I add a template with HTML, the list of items (~1800 items) can take a very long time, sometimes up to 7 seconds, to render, especially when using Chrome. When I remove the HTML tags it renders much faster. Also, scrolling up and down through the items with HTML in the template is very slow.
My template with HTML is pretty simple:
This template performances a significantly amount better:
I understand that a lot of rendering is being done by the browser to generate the control and the selection list, but I was wondering if there was anything that can be done to improve the speed. It displays almost instantly in FireFox. The kicker here is that it's very quick in IE as well.
Any advice is greatly appreciated.
My template with HTML is pretty simple:
template: '<
div
style
=
"float: left;"
>#: Name # </
div
><
div
style
=
"float: right; width: 50px; text-align: right;"
> #: Qty # </
div
><
div
style
=
"float: right;"
> #: kendo.toString(Cost, "c0") # </
div
>'
This template performances a significantly amount better:
template: '#: Name # #: Qty # #: kendo.toString(Cost, "c0") #'
I understand that a lot of rendering is being done by the browser to generate the control and the selection list, but I was wondering if there was anything that can be done to improve the speed. It displays almost instantly in FireFox. The kicker here is that it's very quick in IE as well.
Any advice is greatly appreciated.