Postback ServerSide

3 posts, 0 answers
  1. Bryan Page
    Bryan Page avatar
    7 posts
    Member since:
    Jul 2009

    Posted 14 Jul 2009 Link to this post

    I want to know if the Telerik Menu has the ability to postback server side and be able to grab the event arguments
    to determine what menu item was selected, then do something with it. 

    Something similar to this code that their competitors have at CA.

    As you can see.  It gets into the Event Arg, I pull the value I assigned in the HTML side, then determine where I want to go.

    Is this possible?  Or something the same? 

    private

    void Menu1_ItemSelected(object sender, ComponentArt.Web.UI.MenuItemEventArgs e)

     

    {

    MenuItemSelected = e.Item.Value;

    Session[

    "MenuItemSelected"] = MenuItemSelected;

     

    ChooseMenu();

     

    }

  2. Bryan Page
    Bryan Page avatar
    7 posts
    Member since:
    Jul 2009

    Posted 14 Jul 2009 Link to this post

    I got a little closer here.....I found the code for the event click side

    Private Sub editMenu_ItemClick(ByVal sender As Object, ByVal e As RadMenuEventArgs) 
         If e.Item.Text = "Edit" Then 
             'redirect page 
         ElseIf e.Item.Text = "Delete" Then 
             ' redirect page 
         End If 
     End Sub 


    I just need to get the onclick to actual find my editMenu_ItemClick Sub........any ideas? 

    I will CONTINUE to sift through all these boards to find an answer.  Looking for something in Page Load that will allow the onlick
    to find my Sub
  3. Bryan Page
    Bryan Page avatar
    7 posts
    Member since:
    Jul 2009

    Posted 15 Jul 2009 Link to this post

    Ok, I finally figured it out.   Just wanting to post my findings.

    The key here is to list the Method in the property of the control Menu

    OnItemClick

    ="RadMenu1_ItemClick"

    then that fires the event and you can handle the code as e.Item.Value or whatever you want to use.


    B

     

Back to Top