:: Forum >>

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
Tuesday, July 22, 2008
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)
Wednesday, July 23, 2008
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 http://www.activewidgets.com/examples/grid elements - headers/combo.htm but it doesnt seem to work.

thanks
Ryan Garabedian
Wednesday, July 23, 2008
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)
Wednesday, July 23, 2008
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
Wednesday, July 23, 2008
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
Wednesday, July 23, 2008
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
Wednesday, July 23, 2008

This topic is archived.


Back to support forum

Forum search