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

traverse through rsdlistbox

1 Answer 53 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 26 Nov 2012, 10:35 AM
How can i traverse through all the items in the radlistbox.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Nov 2012, 11:18 AM
Hi,

Try the following code snippet to achieve your scenario.

JS:
<script type="text/javascript">
    function traverse() {
        var listbox = $find("<%= RadListBox.ClientID%>");
        for (var i = 0; i < list._getAllItems().length; i++) {
            var item = list._getAllItems()[i]; //getting the items
        }
    }
</script>

Hope this helps.

Regards,
Princy.
Tags
ListBox
Asked by
beeta one
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or