How can i add radconfim to the same? When user chooses yes, i want the code in item command to execute.
<telerik:GridTemplateColumn UniqueName="Retrieve">
<ItemTemplate><asp:LinkButton ID="lnkRetrieve" runat="server" CausesValidation="false" CommandArgument='<%# cstr(Eval("id"))%>' CommandName="Retrieve" Text="Retrieve"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
Private Sub grd_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles grd.ItemDataBound If TypeOf e.Item Is GridDataItem Then
Dim llnkRetrieve As New LinkButton
llnkRetrieve = CType(e.Item.FindControl("lnkRetrieve"), LinkButton)
llnkRetrieve.Attributes.Add("onclick", "return confirm('Are you sure you want to retrieve?');")
End If
End Sub
Protected
Sub grd_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grd.ItemCommand
If e.CommandName = "Retrieve" Then
dim CommandArgument As String() = e.CommandArgument.ToString().Split(",")
Session("ID") = CInt(CommandArgument(0))
Respose.Redirect(
"Page.aspx", True) End If
End Sub