PDA

View Full Version : Hw to get selected table item at any instance



nitipatil
4 Jun 2008, 5:12 AM
I used Table.getSelectedItem() API when i was using mygwt's version 0.5.0.

Which is the new API for this in extGWT 1 beta4?

Pls Reply..:)

THanks
NItin

gslender
4 Jun 2008, 1:20 PM
Use com.extjs.gxt.ui.client.binder.TableBinder and call getSelection()

See the TableStorePage example in explorer

nitipatil
4 Jun 2008, 7:28 PM
Hi,

In my code,
The table is not like store table, Its dynamic i.e. runtime I am creating tabe item and adding in to it (or removing selected table item from it).

I am "not" using table viewer like concept to create table items.:(


ListStore<Stock> store = new ListStore<Stock>();
store.add(TestData.getStocks());

TableBinder<Stock> binder = new TableBinder<Stock>(tbl, store);I saw TableBinder API , its require ListStore, which is having complete information added

Wht's another way?:-?

gslender
4 Jun 2008, 7:58 PM
TableBinder API , its require ListStore, which is having complete information added

That isn't quite true.

ListStore can be dynamically added/removed and the updates will be reflected in the table view.