3.0 beta 2

combo event in header

what event should i catch when a AW.UI.Combo in a grid header is changed by the user?
Ryan Garabedian
July 22,
It could be onControlValidated or onControlTextChanged, but these are combo events, not grid events. See samples code in '/examples/grid elements - headers/combo.htm'
Alex (ActiveWidgets)
July 23,
that is the second time you have recommended that sample, however when i go there i get a 404 error. can you send the whole link? I was trying to go to /examples/grid elements - headers/combo.htm but it doesnt seem to work.

thanks
Ryan Garabedian
July 23,
This is the sample code in your ActiveWidgets distribution package (.zip) - the 'examples' folder is located next to the runtime and source folders.
Alex (ActiveWidgets)
July 23,
The header combos work fine in your example. Why can't I use AW.UI.Combo as grid CELL templates? It caused focus problem as I posted several days ago.
mrhsh
July 23,
also, now that i captured the event, is there a way to register what column it came from, or do i need to make static combos?
Ryan Garabedian
July 23,
ok, i have something so i can keep it kind of dynamic, basically i set the value of each item in the combo box to be the column it is on, so when the action is called i read the value and know what column to use the filter on.

this tells me what column the combo was in that was changed.

template.onControlTextChanged = function(text)
        {
            var temp = this.getItemValue(this.getSelectedItems());


its pretty basic and ugly but it does exactly what i need it to.
Ryan Garabedian
July 23,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.