Hi,,
I am using RadListBox, I want to get all values of listbox.
I am tying to use "get_items" method But it is showing foll. error.
Uncaught TypeError: Object [object Object] has no method 'get_items'
ASPX code
Please help me to solve.
I am using RadListBox, I want to get all values of listbox.
I am tying to use "get_items" method But it is showing foll. error.
Uncaught TypeError: Object [object Object] has no method 'get_items'
ASPX code
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#<%=btnViewAssignedSlots.ClientID %>').click(function() { var list = $('#<%= rdLstSource.ClientID %>'); var items = list.get_items(); var firstItem = items.getItem(0); alert(firstItem);}}); </script>
<telerik:RadListBox runat="server" ID="rdLstSource" Height="200px" Width="230px"
AutoPostBackOnTransfer="false" AllowTransfer="true" TransferToID="rdLstDestination"
AllowTransferOnDoubleClick="true" EnableDragAndDrop="true" ButtonSettings-ShowTransferAll="true">
<Items>
<telerik:RadListBoxItem Text="Sunday" Value="1" />
<telerik:RadListBoxItem Text="Monday" Value="2"/>
<telerik:RadListBoxItem Text="Tuesday" Value="3"/>
<telerik:RadListBoxItem Text="Wednesday" Value="4"/>
<telerik:RadListBoxItem Text="Thursday" Value="5"/>
<telerik:RadListBoxItem Text="Friday" Value="6"/>
<telerik:RadListBoxItem Text="Saturday" Value="7"/>
</Items>
</telerik:RadListBox>
Please help me to solve.