I'm trying to use a client-site row click to fire a custom item command and I'm not sure how to go about it. I have a GridButtonColumn that allows the user to run the command however we need to have the entire row clickable. I can have the row go into edit mode when clicked but that isn't what we are looking for. Here is the code I have so far:
<telerik:RadCodeBlock ID="rcbCode" runat="server"> <script type="text/javascript"> function RowClick(sender, eventArgs) { var editedRow = eventArgs.get_itemIndexHierarchical(); $find("<%=rgStudents.MasterTableView.ClientID %>").editItem(editedRow); } </script></telerik:RadCodeBlock><telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" OnDeleteCommand="RadGrid1_DeleteCommand" OnInsertCommand="RadGrid1_InsertCommand" OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound" OnNeedDataSource="RadGrid1_NeedDataSource"> <ClientSettings EnableRowHoverStyle="true"> <ClientEvents OnRowClick="RowClick" /> </ClientSettings> <MasterTableView CommandItemDisplay="Bottom" InsertItemDisplay="Bottom"> <Columns> <telerik:GridBoundColumn DataField="ID" DataType="System.Guid" FilterControlAltText="Filter ID column" HeaderText="ID" UniqueName="ID" Display="False" ReadOnly="True" ForceExtractValue="Always" Visible="False"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="name" Display="False" FilterControlAltText="Filter name column" HeaderText="Name" UniqueName="name"> </telerik:GridBoundColumn> <telerik:GridButtonColumn CommandName="StartProcess" ButtonType="LinkButton" FilterControlAltText="Filter StartProcess column" Text="Start Process" UniqueName="StartProcess"> </telerik:GridButtonColumn> </Columns> </MasterTableView></telerik:RadGrid>This opens the row in edit mode but what I'm really looking for is to call the "StartProcess" item command the same way the last GridButtonColumn does.

if
(e.Item is GridCommandItem)
{
//Hide Addnew and refersh button from code behind
GridCommandItem cmditem = e.Item as GridCommandItem;
if (cmditem.FindControl("InitInsertButton") != null)
{
cmditem.FindControl("InitInsertButton").Parent.Visible = false;
}
}
2. I have a button "Add New Record" outside the grid, Onclick of this, I want to insert a row in Grid.
Additional Information --
1. I ahve the below piece of code in my aspx page -
<telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton" HeaderText="Edit">
<ItemStyle Width="10%" HorizontalAlign="Center" />
<HeaderStyle Width="10%" HorizontalAlign="Center" />
<FooterStyle Width="10%" HorizontalAlign="Center" />
</telerik:GridEditCommandColumn>
2. When I tried the below piece of code on buttn click,
GridName.MasterTableView.ShowFooter = true;
GridName.Rebind();
I am not getting the Edit image button.
Please suggest.
