sorry, the title is incorrect
I have a RadGrid that uses the OnSelectedIndexChanged (which fires off some other events that changes things on the screen)
The first column in this RadGrid is a GridHyperLinkColumn which uses DataNavigateUrlFormatStringWhen a user clicks the GridHyperLinkColumn we want the OnSelectedIndexChanged
So in the end, the user clicks the GridHyperLinkColumn link and we want to simulate the
protected void grdData_SelectedIndexChange(object sender, EventArgs e)
{
//runs some code here when the Row is clicked, not the link. We want both
}
any ideas?
OnSelectedIndexChanged fires when
GridHyperLinkColumn is clicked!
I have a RadGrid that uses the OnSelectedIndexChanged (which fires off some other events that changes things on the screen)
The first column in this RadGrid is a GridHyperLinkColumn which uses DataNavigateUrlFormatStringWhen a user clicks the GridHyperLinkColumn we want the OnSelectedIndexChanged
<telerik:RadGrid runat="server" Height="150" ID="grdData" EnableEmbeddedSkins="false" OnSelectedIndexChanged="grdData_SelectedIndexChange" OnPreRender="grdData_PreRender"Skin="AS_Grid_Skin_V10" AutoGenerateColumns="False" AllowPaging="False" AllowSorting="True" Width="100%" OnItemDataBound="grdData_ItemDataBound"> <ClientSettings EnablePostBackOnRowClick="true"> <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="false" /> <Selecting AllowRowSelect="true" /> </ClientSettings> <MasterTableView DataKeyNames="ID"> <Columns> <telerik:GridHyperLinkColumn HeaderText="<%$ Resources:GlobalTerms, lblName%>" DataTextField="Name" HeaderStyle-Wid
th="25%" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="javascript:openScenarioDashboard('{0}');" UniqueName="Name" SortExpression="Name"/>So in the end, the user clicks the GridHyperLinkColumn link and we want to simulate the
protected void grdData_SelectedIndexChange(object sender, EventArgs e)
{
//runs some code here when the Row is clicked, not the link. We want both
}
any ideas?