RadMenuIten Value porperty

2 posts, 1 answers
  1. srikanth
    srikanth avatar
    12 posts
    Member since:
    Apr 2009

    Posted 17 Jul 2009 Link to this post


     Hai

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

        Can you please provide me a sample?

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

    Posted 17 Jul 2009 Link to this post

    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.
Back to Top