Item radmenu and start function java or code behind vb

2 posts, 0 answers
  1. Fabio Cirillo
    Fabio Cirillo avatar
    180 posts
    Member since:
    Jan 2010

    Posted 19 Dec 2012 Link to this post

    hi,
    i've created this radmenu:




    <telerik:RadMenu ID="RadMenu1" Runat="server" Flow="Vertical"
        Skin="Sunset">
        <Items>
            <telerik:RadMenuItem runat="server" Text="load iamge profile">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" Text="change password">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" Text="delete account">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem IsSeparator="True" />
            <telerik:RadMenuItem runat="server" Text="Exit">
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>

    now how do start i click on item for example Load image profile this function java?
    "openRadWindowProfile(); return false;"

    or how do start this code behind when i click on item exit?
    Protected Sub Logout_Click(sender As Object, e As System.EventArgs) Handles Logout.Click
        Session.Clear()
        Session.Abandon()
        Page.Response.Redirect("indexprova.aspx")
    End Sub

    Bye










  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 21 Dec 2012 Link to this post

    Hello,

    Please find attached sample project that demonstrates very similar functionality using RadMenu OnClientClick client-side event handler.  Based on the menu item  text property different window will pop up. You can find more information about RadWindowManager client-side object properties and methods here.

    Hope that this will be helpful.

    Regards,
    Boyan Dimitrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top