How can i quickly add 5000 items to the list control on client side?
I can use the _addNewItems("", options) in RadComboBox, do you have any similar method in RadListBox control which allows to avoid creating RadListItem javascript objects one by one?
Thanks
3 Answers, 1 is accepted
0
Simon
Telerik team
answered on 27 Jul 2009, 12:12 PM
Hi Lambros,
No, RadListBox does not expose such a method.
Have you considered using Ajax and server-side addition of Items? In this way, you would achieve something similar to pure client-side rendering only faster.
Alas i cannot use the Ajax and server-side addition of Items because due to the project design i cannot use postbacks, i am getting list of items from pagemethod and need to add them on the client side. I am able to modify the contents of the page method return value, but i cannot add items on th server.
Is there any workaround to make client side adding work fast?
Thanks
0
Simon
Telerik team
answered on 27 Jul 2009, 03:20 PM
Hi Lambros,
Well, you could certainly use a workaround. It would take some time to complete the whole operation, yet the browser would not hang until it finishes processing, which I believe is what you are trying to avoid.