2009.3.1210.35
Requirement: When GridHyperLinkColumn is clicked, I want the row to be selected.
I have <Selecting AllowRowSelect="true" /> already but that doesn't select row when the link in HyperLinkColumn is clicked.
I can't add OnClick to GridHyperLinkColumn so I made a GridTemplateColumn and used <asp:hyperlink> instead which I could call a javascript with onClick. However I do not know how to pass the current row index to the Row_Select function that I got from another post.
ClientEvent OnRowClick="RowClick" doesn't fire when clicked on the hyperlink either.
    
                                Requirement: When GridHyperLinkColumn is clicked, I want the row to be selected.
I have <Selecting AllowRowSelect="true" /> already but that doesn't select row when the link in HyperLinkColumn is clicked.
I can't add OnClick to GridHyperLinkColumn so I made a GridTemplateColumn and used <asp:hyperlink> instead which I could call a javascript with onClick. However I do not know how to pass the current row index to the Row_Select function that I got from another post.
ClientEvent OnRowClick="RowClick" doesn't fire when clicked on the hyperlink either.
| <telerik:RadScriptBlock runat="server"> | 
| <script language="javascript" type="text/javascript"> | 
| function Row_Select(arg) { | 
| var mt = $find("<%# RadGrid1.ClientID %>").get_masterTableView(); | 
| var row = mt.get_dataItems()[arg]; | 
| mt.selectItem(row.get_element()); | 
| } | 
| function RowClick(sender, eventArgs) { | 
| var mt = $find("<%# RadGrid1.ClientID %>").get_masterTableView(); | 
| var row = mt.get_dataItems()[eventArgs.get_itemIndexHierarchical()]; | 
| mt.selectItem(row.get_element()); | 
| } | 
| </script> | 
| </telerik:RadScriptBlock > | 

