How o hide menu in the MenuManger dynamically - eclipse-plugin

i am using the menumanger for the context menu in nebula nat table. i want to show/hide the menus in my menumanger based on my selection in the row. How to do that dynamically?
Thanks,
Chinna

Maybe this blog post helps in achieving your goal
http://blog.vogella.com/2015/02/03/nattable-context-menus-with-eclipse-menus/

Related

add menu tiles Xamarin Forms

I have a left expandable menu item , I would like to add to the master page a series of tiles with those menu items , like a hyperlink to the actual menu. that looks like below
what would it be the best approach to do this using Xamarin forms , not using renders or effects
Thanks
If there are a fixed number of items you can just use a grid to lay them out.
If you don't know ahead of time how many items, or the number may vary, the FlowListView plugin is probably the best bet.
https://github.com/daniel-luberda/DLToolkit.Forms.Controls/tree/master/FlowListView

Removing tabs in tabcontrol and using designated buttons to switch between tabs

I'm currently working on an application for Windows, however, I have one small problem: I can't seem to figure this one out...
Is there a way to remove the tab headers from tab control and designate other buttons to switch between tabs? I'm going for a more modern look and the default tabs in tab control are not at all what I'm interested in.
thanks for your answers on this question!
I've just thought of a different method to keep the clean look of my program without having to get too complicated with code.
For anyone wondering about this, you could set different buttons to hide and show different things, for example:
Under homeBtn you could have code that shows the information shown on the page by default, yet at the same time, you could also hide any information from the previous tab.
Thanks, Laugh
You can easily add buttons setting the property SelectedIndex on the tab control to switch the pages. To hide the tab headers, there are some ideas over here.

Undo functionality in Dojo

I'm using an enhanced grid in Dojo and I would like to implement "Undo" functionality .
For example after editing a cell, adding/deleting a row the user should be able to revert that action.
Any pointers how to get started?
Thanks!
Well maybe you could get inspiration from this Comand History pattern : https://gist.github.com/c210c0344ca4d4bdfacb
About the actions on DataGrid I assume you know what to do and you were just asking about some "undo mechanism" :)
I hope this will help. I've been using it for a while and it works well
Fetch and save the grid store in some variable before editing . Upon clicking the undo button/link set the grid store with the saved old store.

How do you dynamically change the navGrid toolbar icons in jqgrid?

I currently have a a pretty standard jqgrid that I would like to change the navGrid icons dynamically. The grid shows some standard data with limited navGrid icons (like search) but if you log in to the site it will allow you do add, edit, etc. So I would like to turn on/off certain icons under certain situations. I have not been able to find any way to do this.
Look at the demo which I made for the answer. Another demo from the answer shows one how to disable/enable buttons from the navigator bar instead of show/hide there. I think it's what you can do.

How to have a preview component in zend form?

i want to add a preview component to my zend form. This preview component basically allows the user to construct a drop down and see how it looks (yes unfortunately that is a requirement).
so im constructing this dropdown - and when the user clicks on 'add drop down' (a button present in that form) , the drop down has to be previewed on the right-hand side.
could anyone point me in the right direction - do i use iframes/ajax/dojo? I'm not sure how to go about this, and if anyone could give any pointers, i'd really appreciate it.
Thanks in advance!
Achieved this with a simple onLoad javaScript function . there is certainly no way in zend_forms that this can be done - that i'm aware of.