Get index in JS

2 posts, 1 answers
  1. Saravanan
    Saravanan avatar
    26 posts
    Member since:
    Mar 2013

    Posted 11 Apr 2013 Link to this post

    Hi All,

    I have a RadMultiPageview and there is a RadButton outside it. From JS, is it possible to get the pageview index on client side click.

    Thankyou,
    Saravanan
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Apr 2013 Link to this post

    Hi Saravanan,

    Please have a look into the following JavaScript.

    JavaScript:
    <script type="text/javascript">
        function OnClientClicked(sender, args) {
            var pageView = $find("<%= RadMultiPage1.ClientID %>");
            var index = pageView.get_selectedIndex();
            if (index >= 0) {
                alert(index);
            }
            else {
                alert("Not Selected");
            }
        }
    </script>

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