Nick, I don´t think you can disable an specific row in a grid but you can use form fields and binds insted of the editable grid, take a look at tihs: www.larousse1.com.br/edita It´s a CMS in flash forms that i did. Go at 'livros' under 'catalogo' at the menu and you will see a nice example of what I´m talking about. When you select a row in the grid it populates the fileds in the second panel for you edit them with this aproach you can enable and disable the editing panel as you wish. If you want I can give you some help.
Felipe On 12/2/05, Nick Han <[EMAIL PROTECTED]> wrote: > Felipe, > Thank you! I thought about doing it that way too but I didn't know enough > Flex and actionscript to make that happen. > > Can I ask you another question? What if I wanted to disable (gray out) a > row in the cfgrid when 'selectmode="edit"'? > > > -----Original Message----- > From: Felipe Fernandes [mailto:[EMAIL PROTECTED] > Sent: Friday, December 02, 2005 8:42 AM > To: CF-Talk > Subject: Re: cfgrid flash form question > > Nick, the best way is to use a cfinput type="button" to delete the > rows insted of the auto genereted del of the grid. > This code also popup´s an confirmation alert to confirm the delete: > > > <cfsavecontent variable="actionDelete"> > var batchType = batchType > var myClickHandler = function (evt) > { > if (evt.detail == mx.controls.Alert.YES) > { > var item = batchType.selectedItem; > if(_global.backupDP != undefined) > { > for(var i = 0; i < _global.backupDP.length; i++) > { > if(_global.backupDP[i] == item) > { > _global.backupDP.removeItemAt(i); > } > } > } > GridData.deleteRow(batchType); > } > } > > //set the font color and button labels of all alerts > _global.styles.Alert.setStyle("color", 0xFF0000); > mx.controls.Alert.cancelLabel = "No!"; > mx.controls.Alert.yesLabel = "Yes"; > > //create the alert > var qtexto = 'Tem certeza que deseja excluir o livro \n\n' + > batchType.selectedItem.titulo.toUpperCase(); > var myAlert = mx.controls.Alert.show(qtexto, "Confirmação", > mx.controls.Alert.YES | mx.controls.Alert.CANCEL, box1, > myClickHandler); > </cfsavecontent> > > And the button would be something like this: > > <cfinput type="button" name="removesub" value="Excluir" > onclick="#actionDelete#" enabled="{(batchType.selectedItem.id != > undefined && batchType.selectedItem.id != 'what you don´t want it to > be')}" /> > > I used the batchType.selectedItem.id but I don´t know the columns of > your grid so you may have to change the 'id' for some existing row. > If you want the code to do the insert button just ask. > > Felipe > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225978 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

