I am using a RadGrid in my project and i want to take rowindex in OnCommand (JavaScript) Function . Is it possible or how can i do it ??
<telerik:RadGrid ID="RadGrid1" runat="server" Width="96%" GridLines="None" Skin="Vista"
AutoGenerateColumns="False" AllowFilteringByColumn="True" PageSize="13"
ShowStatusBar="True" OnUpdateCommand="RadGrid1_UpdateCommand"
OnInsertCommand="RadGrid1_InsertCommand"
OnDeleteCommand="RadGrid1_DeleteCommand"
OnNeedDataSource="RadGrid1_NeedDataSource"
OnItemDataBound="RadGrid1_ItemDataBound"
ShowFooter="True"">
<MasterTableView DataKeyNames="MuhFisDetayId" AllowMultiColumnSorting="True" Width="100%"
CommandItemDisplay="Top" EditMode="InPlace" InsertItemDisplay="Top">
<Columns>
<telerik:GridDropDownColumn DataField="HesapId" DataSourceID="LLBLGenProDataSource3"
HeaderText="HesapKodu" ListTextField="HesapKodu" ListValueField="HesapId" UniqueName="HesapId">
<ItemStyle HorizontalAlign="Left" />
</telerik:GridDropDownColumn>
<telerik:GridTemplateColumn HeaderText="Alacak" UniqueName="TemplateColumnAlacak" EditFormColumnIndex="2">
<ItemTemplate>
<%# Eval("Alacak")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadNumericTextBox runat="server" ID="tbAlacak" Width="40px" DbValue='<%# Bind("Alacak") %>' DataType="Decimal">
</telerik:RadNumericTextBox>
</EditItemTemplate>
<FooterTemplate>
<asp:Label runat="server" ID="lblAlacakToplam" Text="" Font-Bold="true" Font-Names="Verdana" ForeColor="#000000"></asp:Label>
</FooterTemplate>
<ItemStyle HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
<telerik:GridEditCommandColumn UpdateText="Update" UniqueName="EditCommandColumn"
CancelText="Cancel" EditText="Update">
<HeaderStyle Width="85px"></HeaderStyle>
</telerik:GridEditCommandColumn>
<telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete" />
</Columns>
<EditFormSettings CaptionFormatString="{0} Update" CaptionDataField="MuhFisDetayId">
<EditColumn ButtonType="ImageButton" />
<FormStyle BackColor="#eef2ea" Width="100%" />
<FormTableStyle CellPadding="2" CellSpacing="0" GridLines="None" />
<FormTableItemStyle Height="29px" Width="100%" />
</EditFormSettings>
</MasterTableView>
<ClientSettings>
<ClientEvents OnCommand="onCommand" />
<Selecting AllowRowSelect="true" />
</ClientSettings>
</telerik:RadGrid>