how to get the no of items(count) in a radlistbox

6 posts, 1 answers
  1. sankardeep v
    sankardeep v avatar
    26 posts
    Member since:
    Jan 2010

    Posted 05 Jan 2010 Link to this post

    I need it inside javascript ,i know how to get it in server side............ pls help  guysssssssssssss
    <script type="text/javascript" language="javascript">
    function removeRadListboxItems(id) {
        for (var i = 0; i < count; i++) {
            var item = id.getItem(0);
            id.trackChanges();
            id.get_items().remove(item);
            id.commitChanges();
        }
    }

    </script>

    count  ????????????????

  2. sankardeep v
    sankardeep v avatar
    26 posts
    Member since:
    Jan 2010

    Posted 05 Jan 2010 Link to this post

    some one pleas help i am new to telerik ...............
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 05 Jan 2010 Link to this post

    Hello sankardeep v,

    Please use id.get_items().get_count().

    Greetings,
    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.
  5. sankardeep v
    sankardeep v avatar
    26 posts
    Member since:
    Jan 2010

    Posted 06 Jan 2010 Link to this post

    thanks.........
  6. Asutosh
    Asutosh avatar
    130 posts
    Member since:
    Sep 2013

    Posted 07 Jun 2014 in reply to Simon Link to this post

    hi i have two RadListBox
    one is source and another is destination
    so how can i remove all RadListBox item using javascript
    thanks
  7. Plamen
    Admin
    Plamen avatar
    2733 posts

    Posted 09 Jun 2014 Link to this post

    Hello,

    You can use the Clear method of the RadListBoxItemCollection client object that will clear the items of the ListBox.

    Hope this will be helpful.

    Regards,
    Plamen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017