RE: [flexcoders] One click item editor (checkbox item editor)
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
[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
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 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
Re: [flexcoders] One click item editor (checkbox item editor)
On Oct 3, 2007, at 11:51 AM, Mark Ingram wrote: 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. If you want to go the route of it just changing values and not showing an editor, I think you could just not have an editor, but a click handler do the work. But if you want an editor to appear but have the state changed in a single click (and still be editable), just have the editor listen for the creationComplete event and toggle its state there. hth charles
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 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 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
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 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 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 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
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 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 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 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