Hello,
I have a RadGrid that have 3 command link buttons. the first 2 need to do post back to execute their function, and that is working ok.
However, the third link needs to execute only a javascript function on the client, without doing a post back. Currently, this is the way my link column looks
The problem is that the onclientclick is executed, but then it does the server trip, refreshes the page and removes the jquery alert I generated.
Any ideas how can I achieve this?
I have a RadGrid that have 3 command link buttons. the first 2 need to do post back to execute their function, and that is working ok.
However, the third link needs to execute only a javascript function on the client, without doing a post back. Currently, this is the way my link column looks
<telerik:GridTemplateColumn UniqueName="DDE1" ReadOnly="true" AllowFiltering="false" HeaderText="DateEntry1"> <ItemTemplate> <asp:LinkButton ID="link3" runat="server" ToolTip='<%# Eval("NumberOfSeconds1")%>' Text='<%# Eval("NumberOfSeconds1")%>' OnClientClick='<%#Eval("infoPathEntry1", "redirectInfopath(\"{0}\")")%>' /> </ItemTemplate> <ItemStyle Font-Size="Large" /> </telerik:GridTemplateColumn>
The problem is that the onclientclick is executed, but then it does the server trip, refreshes the page and removes the jquery alert I generated.
Any ideas how can I achieve this?