Prompt yes/no before executing item clicked

2 posts, 0 answers
  1. Darryl Barney
    Darryl Barney avatar
    99 posts
    Member since:
    Jun 2006

    Posted 26 Apr 2008 Link to this post

    Hello!

    I would like to have it so that if my item ID="rmDelete" onItem Clicked, it pops up a prompt and confirms whether or not to execute the code. I have written code in my code-behind doing this:

        Protected Sub RadMenu1_ItemClick(ByVal sender As Object, ByVal e As Telerik.WebControls.RadMenuEventArgs) Handles RadMenu1.ItemClick  
            Dim ItemClicked As Telerik.WebControls.RadMenuItem = e.Item  
     
            If ItemClicked.Text = "Delete" Then  
              'Delete if popup result = yes.
            End If  
        End Sub 

    Can the Rad Window, or javascript be used to complete this?

    Thanks!
  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 28 Apr 2008 Link to this post

    Hello,

    Please find attached a project how to achieve this. Hope it will be helpful.

    Regards,
    Helen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top