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

[Solved] edit row index in client side on command event

1 Answer 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Savyo
Top achievements
Rank 1
Savyo asked on 06 Mar 2013, 10:48 AM
Hi
     How to get the edit row index in client side on command event of radgrid. thanks for your help

Savyo

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Mar 2013, 11:00 AM
Hi,

Please try the following javascript to get the row index in OnCommand event.

Javascript:
<script type="text/javascript">
        function oncommand(sender, eventArgs) {
            if (eventArgs.get_commandName() == 'Edit') {
                var editIndex = eventArgs.get_commandArgument();
                alert(editIndex);
            }
        }
</script>

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