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

[Solved] Client API - get clientID of a menuItem

1 Answer 101 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Gmaps
Top achievements
Rank 1
Gmaps asked on 27 Jan 2010, 04:14 PM
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."); 
            } 
        } 


1 Answer, 1 is accepted

Sort by
0
Vesko
Top achievements
Rank 2
answered on 28 Jan 2010, 03:13 PM
The client menu items objects do not have ID property.
What exactly are you trying to achieve?
Tags
Menu
Asked by
Gmaps
Top achievements
Rank 1
Answers by
Vesko
Top achievements
Rank 2
Share this question
or