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

Populate RadListBox via a web service

1 Answer 114 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Nicholas Walker
Top achievements
Rank 1
Nicholas Walker asked on 02 Nov 2009, 09:20 PM
Is there a way to populate a RadListBox via a web service?  I don't see an obvious way like there is with the RadMenu.

Thanks,
--nick

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 03 Nov 2009, 05:44 PM
Hi Nicholas Walker,

RadListBox does not support direct binding to Web Service data.

As an alternative you could try using the following approach:
  1. Load the required data from the Web Service in JSON format.
  2. Iterate through the data and create RadListBoxItems (by using the client-side API).
  3. Use the insertItems client-side method of RadListBox to load these Items.
The insertItems method is a recent addition to RadListBox and is optimized to handle large bulk inserts of Items.

Regards,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ListBox
Asked by
Nicholas Walker
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or