Getting item.

2 posts, 1 answers
  1. Karl Ranville
    Karl Ranville avatar
    28 posts
    Member since:
    Mar 2013

    Posted 26 Mar 2013 Link to this post

    Hi,

    How can  I get the first item in RadListbox in Javascript?

    Thanks,
    Karl.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Mar 2013 Link to this post

    Hi Karl,

    Please check the following JavaScript.

    JavaScript:
    <script type="text/javascript">
        function OnClientClicked(sender, args) {
            var ListBox1 = $find('<%=RadListBox.ClientID %>');
            var firstItem = ListBox1.getItem(0).get_text();
            alert(firstItem);
        }
    </script>

    Thanks,
    Princy.
Back to Top