Thanks! Both the approaches solved my problem.

On Feb 22, 8:04 am, Mahavir Jain <[email protected]> wrote:
> Also you can loop through each row of the FlexTable in KeyBoardListener()
> like this:
>
> for(int i=0; i<table.getRowCount(); i++)
> {
>     TextBox txt=(TextBox)table.getWidget(i, 0) //column is 0 because your
> textbox in first column
>      If (sender==txt)
>      {
>            //add your stuff relating to textbox
>      }
>
> }
>
> Hope this helps.
>
> Mahavir
>
> On Sun, Feb 22, 2009 at 8:06 PM, Bakulkumar <[email protected]> wrote:
>
> > Hi,
>
> > Set the name of textbox as an id of the record (or DTO, whatever you
> > call it).
>
> > and then:
>
> > textBox.addKeyboardListener(new KeyboardListenerAdapter() {
> >      public void onKeyPress(Widget sender, char keyCode, int
> > modifiers) {
> >        if (keyCode == (char) KEY_TAB){
> >          // TextBox.cancelKey() suppresses the current keyboard
> > event.
> >          String recordId = ((TextBox)sender).getName();
> >          // call the service with this id and on success update the
> > row
>
> >        }
> >      }
> >    });
> > Hope it should work.
>
> > -Bakul kumar
>
> > On Feb 20, 3:59 pm, NewToGWT <[email protected]> wrote:
> > > Hello,
>
> > > I have a FlexTable, the first column of each row in the FlexTable is a
> > > TextBox.
>
> > > I am calling a service to update the other elements (columns) of the
> > > FlexTable row based on what the user keyed into the text box in that
> > > row.
>
> > > The question I have is: How do I determine which row in the FlexTable
> > > the user keyed into and tabbed off of? I have  a keyboard listener
> > > attached to the TextBox. Using this istener, I am unable to figure out
> > > which row in the FlexTable was modified.
>
> > > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to