How to show selected menu Item?

6 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 17 Jul 2009 Link to this post

    Hi 
        I have used Q2 2008 Rad Ajax Telerik control, I have bind RadMenu using dataset. Dataset is filled using Storeprocedure.

    <

    telerik:RadMenu ID="rmMain" runat="server"  BackColor="Firebrick"  Height="100%"  EnableOverlay="true"  Flow="Vertical" Width="99%" OnClientItemClicking="onClicking" > </telerik:RadMenu>

     

    DataSet

    ds = new DataSet();

     

    ds = objTakCorseCont.TS_PROC_COURSE_GET_menu(

    Convert.ToInt32(Session["EmployeeId"].ToString()),

     

    rmMain.DataTextField =

    "Name";

     

    rmMain.DataFieldID =

    "Id";

     

     

    rmMain.DataNavigateUrlField = "NavigateUrl";

     

     

     

    rmMain.DataValueField =

    "Id";

     

    rmMain.DataSource = ds;

    rmMain.DataBind();


    Whenever user will click on any Item of RadMenu, Navigation path defind for that selected item goes to target page, but I am not able to show selected menu item at that time.

    Thanks
     

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

    Posted 17 Jul 2009 Link to this post

    Hello Rahul,

    You probably need to implement the show pathfunctionality as illustrated in the following demo:

    Hope this helps:
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 17 Jul 2009 Link to this post

    Hi guys,

    In Q2 2009 we introduced a new property - EnableSelection. When True, the selected item is highlighted upon postback.

    Best wishes,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 20 Jul 2009 Link to this post

    Hi,
            Thanks for your reply,
            It's working but RadMenu's First Item is getting display in blackbaground after applying follwing code.

            

     

     

    string item = Server.UrlDecode(Request["Page"]) ?? "Course";

     

     

        if (!string.IsNullOrEmpty(item))

     

        {

     

                RadMenuItem currentItem = rmMain.FindItemByText(item);

     

     

                if (currentItem != null)

     

                {

     

                    //Select the current item and his parents

     

     

                        currentItem.HighlightPath();

     

     

                }

     

        }

        
       Please give your reply.

    Thanks 
            

     
  6. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 20 Jul 2009 Link to this post

    Hello Rahul Khinvasara,

    We are not sure what you mean. Our online example is working as expected in that case. What is different in your case? Are you using a custom skin? I suggest you open a support ticket and send us a runnable version of your project.

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 23 Jul 2009 Link to this post

    Hi Albert,

                   I have open support ticket, if posible please check it Ticket ID: 229298.

    Thanks

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017