traverse through rsdlistbox

2 posts, 0 answers
  1. beeta one
    beeta one avatar
    63 posts
    Member since:
    Aug 2012

    Posted 26 Nov 2012 Link to this post

    How can i traverse through all the items in the radlistbox.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Nov 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top