• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

GWT Grid row selected

 
Ranch Hand
Posts: 40
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am creating a form like a Grid will be having some data, and if we select a row, details of that row will be displayed in the adjecent form.

I am able to show the values in grid and form, but when ever i am loading the page i want to show first recocrd on the grid is highlighted and the corresponding values loaded to form.

I am not getting the logic to show a row is selected, can you please help?

I am creating com.extjs.gxt.ui.client.widget.grid.Grid type grid and the Grid will have arguments as ListStore and ColumnModel.

 
Bartender
Posts: 2343
102
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
very simple, change its style to something like .selected

eg:


you can have a style like:


and of course you need to track mouse events to allow row selections.
tell me where you are stuck...
 
salvin francis
Bartender
Posts: 2343
102
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by the way i have no idea about GWTExt, but the above approach is what I would have done in GWT.
 
Does this tiny ad smell okay to you?
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!