PDA

View Full Version : [Ext.grid.Panel] Open Header context menu programmatically



eha_mec
4 May 2016, 2:01 AM
Hi everyone,

i wanted to ask if it is possible to open the context menu of a column header in a grid programmatically (e.g.: user enters textbox outside of grid -> event -> contextmenu of the first column is automatically opened).

If yes, how can it be achieved?

Greetings

Gary Schlosberg
4 May 2016, 7:43 AM
Are you talking about the trigger menu containing the sort options, or a right-click context menu?

eha_mec
4 May 2016, 8:08 AM
The trigger menu in the columnheader containing sorting, filtering and display options that is beeing opened via left click.

Gary Schlosberg
5 May 2016, 2:31 PM
I don't know of a way to do this with existing methods. You might have a look at the code for the headertriggerclick event and try to repeat it, but I'm guessing you would need to utilize private methods, which isn't generally recommended.