Invoke radalert or radconfirm or radprompt from code behind

4 posts, 0 answers
  1. Nalini
    Nalini avatar
    7 posts
    Member since:
    Jul 2010

    Posted 12 Aug 2010 Link to this post

    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.

  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 13 Aug 2010 Link to this post

    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
  3. Nalini
    Nalini avatar
    7 posts
    Member since:
    Jul 2010

    Posted 13 Aug 2010 Link to this post

    The link is informative. Will this work for radpromt and radconfirm?
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Aug 2010 Link to this post

    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.
Back to Top