• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

GWT Grid row selected

 
Ranch Hand
Posts: 40
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2880
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2880
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic