You should be able to start an edit session by setting editedItemPosition -Alex
On 1/29/14 10:13 PM, "Devesh Mishra" <devesh.mis...@mastek.com> wrote: >Yes, I know that this is the default behaviour of DataGrid. But this >default behaviour is not working with my custom data grid with custom >item renderer. > >I have written some action (server call/some complex logic which takes >time to evaluate data) on the focus out of custom itemrender (TextInput). >After that I don't know what happen, focus comes out of datagrid. > > I am not saying that it's not working completely, but partially it's >working. > >While pressing the tab key, somewhere it lost the focus from a particular >cell and move to somewhere else i.e. outside data grid. > >So, I want to do the same thing programmatically. Kindly let me know how >can I achieve the same ? > > > > >-----Original Message----- >From: Alex Harui [mailto:aha...@adobe.com] >Sent: 27 January 2014 09:57 >To: users@flex.apache.org >Subject: Re: Focus in DataGrid > >That sounds like default behavior. Is default behavior not working for >you or are you asking for a variation of that behavior? > >On 1/26/14 8:05 PM, "Devesh Mishra" <devesh.mis...@mastek.com> wrote: > >>Alex, >> >>What I want to achieve is, when I click on any cell of a data grid and >>press the tab key, focus should move to next cell and then next to next >>and so on using the tab key. Focus should move from one cell to another >>cell when I press the tab key. >> >>Hope it will give you a better understanding. >> >>-----Original Message----- >>From: Alex Harui [mailto:aha...@adobe.com] >>Sent: 24 January 2014 23:06 >>To: users@flex.apache.org >>Subject: Re: Focus in DataGrid >> >>Not sure I understood that. Is your goal just to have Tab move down >>instead of across? >> >>If so, one way folks do that is to get the keyFocusChange event, call >>stopImmediatePropagation, then fake an Enter key event. >> >>On 1/23/14 10:00 PM, "Devesh Mishra" <devesh.mis...@mastek.com> wrote: >> >>>Hi, >>> >>>I am using Custom AdvanceDataGrid (editable=true) with my custom >>>ItemRenderer with Spark TextInput control. In my datagrid, I have 3 >>>columns and 10 rows i.e. >>> >>>1st Column is with my default itemrenderer. (editable=false) 2nd & >>>3rd Column is with my custom itemrenderer. (editable=true & >>>focusEnabled=true) >>> >>>What I want to do is to move the focus in column 2 & 3, when I click >>>on tab button. Using tab key, I want to move from first row to last >>>row using tab key within 2nd & 3rd column. >>> >>>Please let me know, what I need to do programmatically so that I can >>>achieve the same. >>> >>>-- >>>Regards, >>>Devesh Mishra >>>Contact: +91-8097032750 / Ext - 5250 >>> >>>MASTEK LTD. >>>In the US, we're called MAJESCOMASTEK >>> >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>~ >>>~~~ >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>Opinions expressed in this e-mail are those of the individual and not >>>that of Mastek Limited, unless specifically indicated to that effect. >>>Mastek Limited does not accept any responsibility or liability for it. >>>This e-mail and attachments (if any) transmitted with it are >>>confidential and/or privileged and solely for the use of the intended >>>person or entity to which it is addressed. Any review, >>>re-transmission, dissemination or other use of or taking of any action >>>in reliance upon this information by persons or entities other than >>>the intended recipient is prohibited. This e-mail and its attachments >>>have been scanned for the presence of computer viruses. It is the >>>responsibility of the recipient to run the virus check on e-mails and >>>attachments before opening them. If you have received this e-mail in >>>error, kindly delete this e-mail from desktop and server. >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>~ >>>~~~ >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >>MASTEK LTD. >>In the US, we're called MAJESCOMASTEK >> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>~~~ >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>Opinions expressed in this e-mail are those of the individual and not >>that of Mastek Limited, unless specifically indicated to that effect. >>Mastek Limited does not accept any responsibility or liability for it. >>This e-mail and attachments (if any) transmitted with it are >>confidential and/or privileged and solely for the use of the intended >>person or entity to which it is addressed. Any review, re-transmission, >>dissemination or other use of or taking of any action in reliance upon >>this information by persons or entities other than the intended >>recipient is prohibited. This e-mail and its attachments have been >>scanned for the presence of computer viruses. It is the responsibility >>of the recipient to run the virus check on e-mails and attachments >>before opening them. If you have received this e-mail in error, kindly >>delete this e-mail from desktop and server. >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>~~~ >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> > >MASTEK LTD. >In the US, we're called MAJESCOMASTEK > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Opinions expressed in this e-mail are those of the individual and not >that of Mastek Limited, unless specifically indicated to that effect. >Mastek Limited does not accept any responsibility or liability for it. >This e-mail and attachments (if any) transmitted with it are confidential >and/or privileged and solely for the use of the intended person or entity >to which it is addressed. Any review, re-transmission, dissemination or >other use of or taking of any action in reliance upon this information by >persons or entities other than the intended recipient is prohibited. This >e-mail and its attachments have been scanned for the presence of computer >viruses. It is the responsibility of the recipient to run the virus check >on e-mails and attachments before opening them. If you have received this >e-mail in error, kindly delete this e-mail from desktop and server. >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >