Brilliant - that's just what I was looking for - thanks Alex!!
Mark ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 03 October 2007 17:36 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] One click item editor (checkbox item editor) If you set editable="false", you can't tab to the checkbox. If you set editable="true", also set rendererIsEditor, but also update the dataprovider on click (or is it change?) You will get an itemEditEnd when you tab out or click out, but not when you actually click it. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Wednesday, October 03, 2007 9:15 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] One click item editor (checkbox item editor) Oh and also, I presume there is no way of generating a valid itemEndEdit event from a standard item renderer? (I'll have to bubble a new event up from the item renderer?) Mark ________________________________ size=2 width="100%" align=center tabIndex=-1> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: 03 October 2007 17:13 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] One click item editor (checkbox item editor) Is this to be used in conjunction with setting editable="false? Or is there a better method of stopping the default text input editor from showing? Thanks for the quick response, Mark ________________________________ size=2 width="100%" align=center tabIndex=-1> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: 03 October 2007 17:03 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] One click item editor (checkbox item editor) Use a straight-up custom itemRenderer to avoid the default itemEditor behavior. You will need to update the dataProvider item in the renderer yourself. Tracy ________________________________ size=2 width="100%" align=center tabIndex=-1> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Wednesday, October 03, 2007 11:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] One click item editor (checkbox item editor) Hi, I have a datagrid with a column that contains values of "True" or "False". I've got these hooked up to an item renderer and an item editor which is basically just a checkbox (in both cases). What I've noticed is, if a user clicks on the item renderer (the checkbox) the natural expectation would be that the checkbox state would change - but it doesn't - it just loads the item editor, then the user has to click a second time to make their changes. Is it possible to have a single click item editor? i.e. when the user clicks on the checkbox, it actually changes it's value, as opposed to creating the item editor. Any ideas? Thanks, Mark