3.2.0

Knowing wich of the multiple Grids has focus...

Hi,

I'm planning to use multiple grids on the same page. And when the user presses the <enter> key, there are different functions to access according to the Grid the User is working in.

Is there a way/function/method that tells me wich of the Grids is the active one? Wich of the Grids has focus?

Regards,

Sander
Sander
December 18,
We could use help on this one too. 1.0 Forum talked about a Global variable - anyone have code to share. We basically are trying to have two grids but remember which was the last grid that had a row placed in focus so that when the enter key is pressed we send only 1 row index to the call. It is picking up each row select in each individual grid
Sam K
May 11,
Why not just have a seperate event for each and then pass a parameter to a single function?

function myFunction(whichGrid) {
alert(whichGrid);
}

var obj1 = var AW.UI.Grid;
obj1.onKeyEnter = function() { myFunction(1); }

var obj2 = var AW.UI.Grid;
obj2.onKeyEnter = function() { myFunction(2); }

var obj3 = var AW.UI.Grid;
obj3.onKeyEnter = function() { myFunction(3); }
Mike
May 14,
You can use onControlActivated/Deactivated events to track which control has the focus -

http://www.activewidgets.com/aw.system.control/control-activation-events.html

There is also internal property obj.$active but this will change in the next release (to something like obj.getControlActive()).
Alex (ActiveWidgets)
May 14,

This topic is archived.

See also:


Back to support forum