Pivot Component: Right click for cell selection

I want to have cell selection on the right click.

Basically requirement is to have context menu action on particular cell.
I have attached the content menu on the Pivot component. But now on the right click I want to get the identity of the cell on with right click is done so that context menu operation could be perform on that particular cell.

You can use onBeforeContextMenu handler of the datatable

http://webix.com/snippet/0a5c4fd6

I tried this, now on right click cell is getting selected but now context menu is not appearing :(. How to achieve both of the things ?

Yep, my bad. The selection repaint the cell, which breaks context menu handling
To fix it, just delay a selection

http://webix.com/snippet/23fdd88e