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

Can't find get_checkedItems() client side api

4 Answers 276 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Terry lin
Top achievements
Rank 1
Terry lin asked on 28 Oct 2009, 08:56 AM
I can' t find the get_checkedItems() method in the client side RadListBox object & the get_checked method in RadListBoxItem object.
The telerik library version i'm using is 2009.2.701.35.  Maybe they are in the Q2 sp1? Can someone answer? Thanks.

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Oct 2009, 10:25 AM
Hi Terry,

I tried following code in order to the checked item in client side (Version: 2009, 2, 701, 20) and it is working fine for me.

ASPX:
 
<telerik:RadListBox CheckBoxes="true" runat="server" ID="RadListBox1" Height="200px" Width="230px"
    <Items> 
      . . . 
    </Items> 
</telerik:RadListBox> 

JavaScript:
 
<script type="text/javascript"
    function getChecked() { 
        var listBox = $find('<%= RadListBox1.ClientID %>'); 
        alert(listBox.get_checkedItems().length); 
        alert(listBox.get_checkedItems()[0].get_text()); // First selected item 
        alert(listBox.get_checkedItems()[0].get_checked()); 
    } 
</script> 
Cold you provide the code that you tried if that is different from this?

-Shinu.
0
Terry lin
Top achievements
Rank 1
answered on 29 Oct 2009, 12:31 AM
Thanks Shinu.
I made a mistake, the object I got is a combobox but not the listbox, how stupid i'm, thanks again
0
Mark Galbreath
Top achievements
Rank 2
answered on 17 Nov 2009, 12:11 PM
Of course, your original question was, "Where is the documentation?"
0
Simon
Telerik team
answered on 18 Nov 2009, 04:42 PM
Hello Mark Galbreath,

You can find RadListBox's client-side API documentation here.

Sincerely yours,
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
Terry lin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Terry lin
Top achievements
Rank 1
Mark Galbreath
Top achievements
Rank 2
Simon
Telerik team
Share this question
or