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

Get index in JS

1 Answer 11 Views
Button
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 11 Apr 2013, 08:45 AM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 11 Apr 2013, 11:30 AM
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.
Tags
Button
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or