This is a migrated thread and some comments may be shown as answers.

How to show selected menu Item?

5 Answers 292 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 17 Jul 2009, 06:00 AM
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
 

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Jul 2009, 11:10 AM
Hello Rahul,

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

Hope this helps:
Shinu.
0
Veselin Vasilev
Telerik team
answered on 17 Jul 2009, 12:10 PM
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.
0
Rahul Khinvasara
Top achievements
Rank 1
answered on 20 Jul 2009, 02:14 PM
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 
        

 
0
Atanas Korchev
Telerik team
answered on 20 Jul 2009, 03:13 PM
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.
0
Rahul Khinvasara
Top achievements
Rank 1
answered on 23 Jul 2009, 10:46 AM

Hi Albert,

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

Thanks

Tags
Menu
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Veselin Vasilev
Telerik team
Rahul Khinvasara
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or