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

What should be the argument for menu open method

1 Answer 9 Views
Menu
This is a migrated thread and some comments may be shown as answers.
gopi
Top achievements
Rank 1
gopi asked on 19 Oct 2012, 06:28 AM
Hi,

I am new to kendo, I am using kendo menu component, the data for menu comes on a ajax call. I want to open menu at runtime on some user interaction other than clicking menu, I found open method in API, but what value should I pass as argument. If I need to pass Id of an element how can I get Id of elements that were created at run time with ajax call.

It's very urgent for me, please can any give solution?

Thanks,
Gopi.
 

1 Answer, 1 is accepted

Sort by
0
Ignacio
Top achievements
Rank 1
answered on 15 Oct 2013, 01:25 PM
You dont need to pass an id necessarily. Just a selector.
So one way to do this would be to add cssClasses to each menu element that add dynamically.
Here's a sample.


Hope this helps.
Tags
Menu
Asked by
gopi
Top achievements
Rank 1
Answers by
Ignacio
Top achievements
Rank 1
Share this question
or