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

Invoke radalert or radconfirm or radprompt from code behind

3 Answers 121 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nalini
Top achievements
Rank 1
Nalini asked on 12 Aug 2010, 08:37 PM

Can you invoke radalert or radconfirm or radprompt from code behind?

I am experimenting on the radpanel bar to be my menu items. I have the following code. When user choose delete, I would like to show radconfim and when user chooses to enter, I would like to show radprompt.  Can this be done with Radconfirm and Radprompt? If not please suggest if there is any way to achieve this?

Protected Sub RadPanelBar1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar1.ItemClick
        If e.Item.Items.Count > 0 Then
            If e.Item.Text <> "Print" Then
                "You clicked on top level item. Click on the child item."
            End If
            If e.Item.Text <> "Issuance" Then
                "You clicked on top level item. Click on the child item."
            End If
        Else
            If e.Item.Value = "VIEW" Then
  
            ElseIf e.Item.Value = "UPDATE" Then

            ElseIf e.Item.Value = "SAVE" Then

            ElseIf e.Item.Value = "DELETE" Then

            ElseIf e.Item.Value = "ENTER" Then

         
            End If
        End If
    End Sub

Thank in advance.

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 13 Aug 2010, 12:11 PM
Hello Nalini,

I believe that this KB article will be of help.

Greetings,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nalini
Top achievements
Rank 1
answered on 13 Aug 2010, 01:19 PM
The link is informative. Will this work for radpromt and radconfirm?
0
Shinu
Top achievements
Rank 2
answered on 13 Aug 2010, 02:05 PM
Hi Nalini,


The code in KB Article will work for radprompt also. And if you want to perform any operation on server based on the confirm/prompt result, then you need to perform either postback or ajaxRequest() as described in the following forum.
Confirm Box and Result in Code-behind


-Shinu.
Tags
Window
Asked by
Nalini
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Nalini
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or