This is a migrated thread and some comments may be shown as answers.

Prompt yes/no before executing item clicked

1 Answer 37 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Darryl Barney
Top achievements
Rank 1
Darryl Barney asked on 27 Apr 2008, 02:02 AM
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!

1 Answer, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 28 Apr 2008, 02:22 PM

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
Tags
Menu
Asked by
Darryl Barney
Top achievements
Rank 1
Answers by
Helen
Telerik team
Share this question
or