get listboxitem

2 posts, 0 answers
  1. Sigma
    Sigma avatar
    87 posts
    Member since:
    Apr 2012

    Posted 22 Mar 2013 Link to this post

    Hi,

    how can I get the specified item of a RadListBox using the index?

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

    Posted 22 Mar 2013 Link to this post

    Hi Sigma,

    Please try the sample code snippet.

    JavaScript:
    <script type="text/javascript">
        function getItemBasedOnIndex() {
            var list = $find("<%= RadListBox1.ClientID %>");
            var itemText=list.getItem(0).get_text();   
        }
    </script>

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top