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

Get Selected Row Count

1 Answer 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lovella Bacaud
Top achievements
Rank 1
Lovella Bacaud asked on 05 Apr 2013, 02:24 AM
Hi,

I have a RadGrid with client side row selection and AllowMultiRowSelectionEnabled. How to display the number of rows selected from client-side code?

Thanks,
Lovella.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 05 Apr 2013, 04:18 AM
Hi Lovella,

Please check the following JavaScript:

JavaScript:
<script type="text/javascript">
    function GetSelectedItems() {
        alert($find("<%= RadGrid1.MasterTableView.ClientID %>").get_selectedItems().length);
    }
</script>

Thanks,
Princy.
Tags
Grid
Asked by
Lovella Bacaud
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or