Hi, you could dispatch a cellEdit event from within your ComboBoxCellRenderer class directly on the listOwner itself. This should cause your fCarregaGridCliente() function to excute, i.e.
function handleEvent(evt:Object):Void { if (evt.type == "change") { var rd = listOwner.getItemAt(getCellIndex().itemIndex); rd.COMBODATA.selectedIndex = combo.selectedIndex; listOwner.editField(getCellIndex().itemIndex,"COMBODATA",rd.COMBODATA); // dispatch a cellEdit event on the the owner (the DataGrid) listOwner.dispatchEvent({type: "cellEdit"}); } } Dirk. -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Fernando Barros Sent: Friday, April 22, 2005 4:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Calling a WebService from a Class Hi there! I'm new on flex and I don't know how to implement this. I'm using a ComboBoxCellRenderer.as from MM (or Adobe), to put a Combo inside a Datagrid. So, in this class, I have this function: function handleEvent(evt:Object):Void { if (evt.type == "change") { // get the row data corresponding to the current itemIndex (row #) var rd = listOwner.getItemAt(getCellIndex().itemIndex); // update the row's COMBODATA.selectedIndex with that of selectedIndex of // the combo box rd.COMBODATA.selectedIndex = combo.selectedIndex; // update the dataProvider to reflect this. this will cause setValue() to // be triggered again, which then uses the COMBODATA.selectedIndex to // set the comboBox properly. listOwner.editField(getCellIndex().itemIndex,"COMBODATA",rd.COMBODATA); } } It is working with no problems. But I'm case, I have a datagrid who has this function cellEdit="fCarregaGridCliente(event)" and until now, this function only does it wsProposta.ClienteAtualiza.send() [my webservice to data update]; If I change, for example, the client's name the function is called, but nothing happen if I change my combo maded by ComboBoxCellRenderer. So, How can I call this webservice [wsProposta.ClienteAtualiza.send()] after the change event in the combo? Thks in advance! --------->--------->--------- Fernando Barros Internet Officer +55 11 5014-7093 www.officer.com.br --------->--------->--------- Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/