Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cliff on May 30, 2008 00:07
open dhtmlx forum
context menu split

Hi
I'm using V1.5 dhtmlxSuite_pro_v16_80111
I have a grid that is split at column 3 (all data loaded via XML)
i am setting
setContextZone(myGrid.objBox,"empty_space");
however the context menu does not appear on the left hand side of the split in the empty space. The context menu does appear on the right in the empty space when you click in this area of empty space
Thanks again
Cliff
Answer posted by Support on May 30, 2008 02:41
To set active both parts of grid you can use
    menu.setContextZone(myGrid.objBox,"empty_space"); // right part of grid
    menu.setContextZone(myGrid._fake.objBox,"empty_space"); // left part of grid
Answer posted on Jun 01, 2008 16:34

Hi When i use

 menu.setContextZone(myGrid._fake.objBox,"empty_space"); // left part of grid

I get an error of [object error]

Cliff

Answer posted by Support on Jun 02, 2008 08:17
Please check attached sample, it uses the same approach and works correctly.

In which moment of loading you are executing setContextZone command
To be applied correctly - it need to be executed after split executed ( if split done from XML - after XML loading )
Attachments (1)
Answer posted on Jun 02, 2008 16:26

moved the

setContextZone(myGrid.objBox,"empty_space");

and

setContextZone(myGrid._fake.objBox,"empty_space"); // left part of grid

 into the onXmlLoadingEnd event and it fixed it

thanks again

cliff