Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
One datatable, two context menus   Message List  
Reply | Forward Message #30638 of 52127 |
Hello!

We have one data table, displaying orders from customers. We've also got a menu button, that changes which orders are displayed - open, delivered, ready for delivery etc. For all choices except one, the regular context menu with choices should be displayed, but for "ready to ship" another set of options should be displayed. How to do it? Two context menus seems weird, and hard to do. Hiding/showing items might be the way to go, if so how?
--
Best regards,
Christian Tiberg

Fri May 9, 2008 2:30 pm

ctiberg
Offline Offline
Send Email Send Email

Forward
Message #30638 of 52127 |
Expand Messages Author Sort by Date

Hello! We have one data table, displaying orders from customers. We've also got a menu button, that changes which orders are displayed - open, delivered, ready...
Christian Tiberg
ctiberg
Offline Send Email
May 9, 2008
2:30 pm

I had to do something very similar. Here's what I did. It's a mixture of the examples for datatable context menu and treeview context menu. ...
jeremymefford
Offline Send Email
May 9, 2008
5:46 pm

Thanks, that looks just right :) ... -- Best regards, Christian Tiberg...
Christian Tiberg
ctiberg
Offline Send Email
May 10, 2008
10:42 am

Beware however, this does not support submenus in the context menu. To make that work you'd have to do some modifications to the switch statement. I realized...
jeremymefford
Offline Send Email
May 11, 2008
6:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help