RadListBox insertItem

4 posts, 0 answers
  1. Dave Hollen
    Dave Hollen avatar
    46 posts
    Member since:
    Jan 2010

    Posted 11 Mar 2010 Link to this post

    Hello,

    I am trying to user the insertItem function (in Javascript) for the RadListBox. 

    Here is my code:

    var

     

    listBox = $find("<%= rlbSelectedContacts.ClientID %>");

     

     

    var arr = [];

     

     

    for (var i = 0; i < 10; i++) {

     

     

    var item = new Telerik.Web.UI.RadListBoxItem();

     

    item.set_text(

    "text" + i);

     

    arr[i] = item;

    }

    listBox.insertItems(arr);




    When I run this script, it is telling me that "Microsoft JScript runtime error: Object doesn't support this property or method" regarding the insertItems() function.  listBox is not NULL in my script.  Any ideas?

    I need to insert 2000+ items into the list box and a bulk insert would do wonders.

    Thanks!
    Dave
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 12 Mar 2010 Link to this post

    Hello Dave,

    I've tested this code and it worked without a problem at our side. Which version of the controls you're using?

    All the best,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dave Hollen
    Dave Hollen avatar
    46 posts
    Member since:
    Jan 2010

    Posted 12 Mar 2010 Link to this post

    Q2 2009 Release.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 15 Mar 2010 Link to this post

    Hello Dave,

    The method is available since 2009.2.826 version (Q2 service pack), so please upgrade in order to use it.

    Regards,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top