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.
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
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:
JavaScript:
Cold you provide the code that you tried if that is different from this?
-Shinu.
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> |
-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
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
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.
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.