RAD MENU ITEM CLICK

3 posts, 1 answers
  1. Muhammad
    Muhammad avatar
    6 posts
    Member since:
    Jul 2008

    Posted 24 Aug 2009 Link to this post

    Hello,

    My case is that.. i have a rad menu..

    support three buttons in radmenue: HOME , ABOUT US, CONTACT US

    i want to do that when user click "Home" menu then open "RadMultiPage1" when user click "About US" then open "RadMultiPage2" when user click "CONTACT US" then open "RadMultiPage3"

    How could i do please help me.. i try so many thing but fail .. please help me correctly and also give me the code snippet..

    I am very thankful..

    Thanks.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Aug 2009 Link to this post

    Hi Muhammad,

    Try the following approach for showing PageView based on clicked RadMenuItem and see whether this is suitable for your need.

    ASPX:
     
    <telerik:RadMenu ID="RadMenu1" runat="server" OnItemClick="RadMenu1_ItemClick"
        <Items> 
            <telerik:RadMenuItem runat="server" Text="Home"
            </telerik:RadMenuItem> 
            <telerik:RadMenuItem runat="server" Text="About us"
            </telerik:RadMenuItem> 
            <telerik:RadMenuItem runat="server" Text="Contact us"
            </telerik:RadMenuItem> 
        </Items> 
    </telerik:RadMenu> 
     
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server"
        <telerik:RadPageView ID="RadPageView1" runat="server" __designer:wfdid="w3"
            RadPageView1</telerik:RadPageView> 
        <telerik:RadPageView ID="RadPageView2" runat="server" __designer:wfdid="w4"
            RadPageView2</telerik:RadPageView> 
        <telerik:RadPageView ID="RadPageView3" runat="server" __designer:wfdid="w5"
            RadPageView3</telerik:RadPageView> 
    </telerik:RadMultiPage> 

    C#:
     
    protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e) 
        if (e.Item.Text == "Home"
        { 
            RadPageView1.Selected = true
        } 
        else if (e.Item.Text == "About us"
        { 
            RadPageView2.Selected = true
        } 
        else if (e.Item.Text == "Contact us"
        { 
            RadPageView3.Selected = true
        } 

    -Shinu.
  3. Muhammad
    Muhammad avatar
    6 posts
    Member since:
    Jul 2008

    Posted 25 Aug 2009 Link to this post

    thanks so much for the support.. !!

    i like like rad tools sir if i need a support in the telerik regarding some issue for placing the services of rad in different area of interest whom should i contact.
Back to Top