Client API - get clientID of a menuItem

2 posts, 0 answers
  1. Gmaps
    Gmaps avatar
    2 posts
    Member since:
    Jan 2009

    Posted 27 Jan 2010 Link to this post

    Hello,

    Regarding to this sample ..\Live Demos\Menu\Examples\Programming\ClientSideAPI

    I'm not able to get the clientID out of a menuItem.

    Its always undefined.

    What am I doing wrong?

    function OpenItem() 
            { 
                var menu = $find("RadMenu1"); 
                var text = $get("openTextBox").value; 
                 
                var item = menu.findItemByText(text); 
                 
                if (item) { 
                    alert(item.ID);   // <----------------------------------------------------------- 
                    item.open(); 
                } 
                else 
                { 
                    alert("Item with text '" + text + "' not found."); 
                } 
            } 


  2. Vesko
    Vesko avatar
    122 posts
    Member since:
    Mar 2009

    Posted 28 Jan 2010 Link to this post

    The client menu items objects do not have ID property.
    What exactly are you trying to achieve?
Back to Top