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.