3.2.0

custom event - onrowselected

Hi,

I need to raise a custom event when one or more rows are selected on the Grid. How should I go about this? would I need changing anything in _action.js?

Thanks in advance,
Kalyan
June 29,
For each property there is one event firing before change (..Changing) and one after change (...Changed), here you can use -

obj.onSelectedRowsChanged = function(arrayOfSelectedRows){
...
}

or

obj.onRowSelectedChanged = function(selected, index){
...
}

Note, that the second event fires twice, first for the row which becomes unselected, then for the row which becomes selected.
Alex (ActiveWidgets)
June 29,
Thanks Alex,

You are a life saver :-)

Kalyan
June 30,
may table doenst hav these methods, whats wrong?
i always got 'undefined' when trying to see content.
Pc
September 22,
nvm, tkz.
Pc
September 22,

This topic is archived.

See also:


Back to support forum