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

MasterPage RadMenu`s OnClientItemClicked

2 Answers 80 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 03 Feb 2009, 02:53 PM
Hello!
I have the following problem.
On master page i have RadMenu (lets call it RadMenu1).
On page with its master i populate it with data (using RadMenu menu = (RadMenu)Master.FindControl("RadMenu1");) etc.
THis works fine, since all data is there.
On this page i have function (in client script) called functionHello().

What is the way for linking this function to RadMenu1? Since when i try to do:

menu.Attributes["OnClientItemClicked"] = "functionHello";

its not working at all.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Feb 2009, 05:52 AM
Hi Alexander,

Try attaching the client side function as shown below.

CS:
RadMenu menu = (RadMenu)Master.FindControl("RadMenu1"); 
menu.OnClientItemClicked = "functionHello"

Thanks,
Shinu.
0
Alexander
Top achievements
Rank 1
answered on 04 Feb 2009, 07:09 AM
Thanks=)
Tags
Menu
Asked by
Alexander
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Alexander
Top achievements
Rank 1
Share this question
or