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

RadMenuIten Value porperty

1 Answer 49 Views
Menu
This is a migrated thread and some comments may be shown as answers.
srikanth
Top achievements
Rank 1
srikanth asked on 17 Jul 2009, 01:15 PM

 Hai

    How can I access "Value" property of a RadMenuItem in Javascript.

    Can you please provide me a sample?

   Thanks
   Srikanth gn

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 17 Jul 2009, 01:40 PM
Hi Srikanth,

You could use the get_value() method of client side object of RadMenuItem to access the value property.

JavaScript:
 
<script type="text/javascript"
function Getvalue() 
  var menu = $find("<%=RadMenu1.ClientID %>"); 
  var menuItem = menu.findItemByText("Child RadMenuItem 1"); 
  alert(menuItem.get_value()); 
 
</script> 

-Shinu.
Tags
Menu
Asked by
srikanth
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or