Friday, October 25, 2013

Re: DataGrid focus issue with EditTextCell

Applying a selectionModel and a DefaultSelectionEventManager.BlacklistEventTranslator that excludes the column in question solves the problem.

kibu


Am Freitag, 25. Oktober 2013 08:49:06 UTC+2 schrieb kibu Kuhn:
hi,

I'm running into problems handling the focus behavior of an editable cell in DataGrid.
I've a grid based on DataGrid that has a column with EditTextCell cells. I've overridden EditTextCell to always show the textbox. The goal is that every time the user clicks into a textbox, this textbox should
  • get and hold the focus
  • select its content
This is the default behavior of EditTextBox and it works fine in most cases, but not always.
Now the issue:
Often DataGrid renders the current row again when I click into the textbox. This redraws the textbox, focus and selection are lost. I have to click again into the textbox.
When you look to the datagrid showcase   
you can see a similar behavior. First the dropdown box must be selected (gray border), then you can drop down the list.

Is there any way to keep the focus or to avoid re-render the current row, when the user clicks into  a EditTextCell ?

TIA
kibu

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment