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

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

5 Answers 529 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
sankardeep v
Top achievements
Rank 1
sankardeep v asked on 05 Jan 2010, 09:33 AM
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  ????????????????

5 Answers, 1 is accepted

Sort by
0
sankardeep v
Top achievements
Rank 1
answered on 05 Jan 2010, 09:42 AM
some one pleas help i am new to telerik ...............
0
Accepted
Simon
Telerik team
answered on 05 Jan 2010, 04:03 PM
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.
0
sankardeep v
Top achievements
Rank 1
answered on 06 Jan 2010, 06:53 AM
thanks.........
0
Asutosh
Top achievements
Rank 1
answered on 07 Jun 2014, 07:23 AM
hi i have two RadListBox
one is source and another is destination
so how can i remove all RadListBox item using javascript
thanks
0
Plamen
Telerik team
answered on 09 Jun 2014, 11:14 AM
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.

 
Tags
ComboBox
Asked by
sankardeep v
Top achievements
Rank 1
Answers by
sankardeep v
Top achievements
Rank 1
Simon
Telerik team
Asutosh
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or