:: Forum >>

How to monitor a ComboCell change ?

I set one of the column of the grid to the "Combo" Template, this works fine, but how can i be notify by a combo value change when the users selects on of the combos items ?

Olivier
Monday, November 28, 2005
Yeah, I is looking for this one for so long...
Anybody has an idea???
Patrick kiken
Tuesday, December 6, 2005
You can try with:
obj.onCellTextChanged=function(){alert('data changed')}
or:
obj.onCellValueChanged=function(){alert('data changed')}
Carlos
Tuesday, December 6, 2005
I used the following code in one of my example pages to set the value in a different column on the same row. When the combo is changed it fires and gives me access to the row number too.

obj.onCellValueChanged = function(value, column, row){
this.setCellText("1", 5, row);
}
Rob Francis
Wednesday, December 7, 2005
Rob

I am hoping to use "onCellValueChanged" so that I can change a cell based on change in a different cell etc..

This method appears in Alex's recent checkbox example (to display a simple message in the windows status bar). I notice, however, that, using this example, the method works OK in IE but not in FF. Have you experienced this - or am I doing something trivially wrong?

Thanks
Will
Will
Wednesday, December 7, 2005
.... problem mentioned above seems to be something to do with displaying msg's in Firefox window.status bar, rather than with the method "onCellValueChanged" itself. I've managed to get it working in FF with simple alert msgs. Apologies.

Will
Will
Wednesday, December 7, 2005
What about the case when the combo is not in a grid, but on plain page...

OnCellValueChanged won't work since not in the grid!!!
Lucas
Wednesday, December 7, 2005
Lucas, did you try with?
obj.onControlTextChanged=function(){alert('data changed')}
Carlos
Wednesday, December 7, 2005
Now that's much better...

Carlos, where do you find all the references to such methods???
Lucas
Wednesday, December 7, 2005
I just use the Reference link ;-)
http://activewidgets.com/aw.system.control/control-text.html
Carlos
Wednesday, December 7, 2005
Did it actually work? I have the same problem but no event is being fired?

Any help here?
Jack Mansons
Wednesday, June 7, 2006

This topic is archived.


Back to support forum

Forum search