I have a RadGrid that sits inside an UpdatePanel. I have the following template column defined:
<telerik:GridTemplateColumn UniqueName="Answers" HeaderText="Edit" DataField="Id">
<ItemTemplate>
<asp:LinkButton OnClientClick="$(this).parent().parent().css('backgroundColor', 'cyan');" ID="btnViewAnswers" runat="server" CommandArgument='<%# Eval("Id") %>'
CssClass="icolink btn_list" OnClick="btnViewAnswers_Click">Answers</asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
How do I highlight the row when clicked? I am using jQuery now to change the background color and its working, but I think the updatepanel is doing an ajax call and then the radgrid is losing the css.
<telerik:GridTemplateColumn UniqueName="Answers" HeaderText="Edit" DataField="Id">
<ItemTemplate>
<asp:LinkButton OnClientClick="$(this).parent().parent().css('backgroundColor', 'cyan');" ID="btnViewAnswers" runat="server" CommandArgument='<%# Eval("Id") %>'
CssClass="icolink btn_list" OnClick="btnViewAnswers_Click">Answers</asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
How do I highlight the row when clicked? I am using jQuery now to change the background color and its working, but I think the updatepanel is doing an ajax call and then the radgrid is losing the css.