Go Back   SmartClient Forums > Smart GWT Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Thread Tools Search this Thread
Old 17th Mar 2011, 14:44
frank99 frank99 is offline
Registered Developer
Join Date: Sep 2009
Posts: 7
Default will ListGrid.setSelectionProperty() change the dataSource when a record is selected?

I am using the ListGrid.setSelectionProperty() in smartGWT 2.4. According to the javadoc, it seems when a record is selected in the ListGrid, it will change the "isSelected" field in the DataSource.

However it did not seem to work for me. No matter I defined the "isSelected" field in DataSource field only or defined it in both DataSource and the ListGrid field. I also try to use ListGrid.saveAllEdits(), hoping it will write the selected field to the DataSource. No luck either.

So my question is:
will ListGrid.setSelectionProperty() change the dataSource when a record is selected?

if yes, is there a working example that I can take a look at?

Reply With Quote
Old 17th Mar 2011, 14:45
Isomorphic Isomorphic is online now
Join Date: May 2006
Posts: 41,402

No. Selection is a grid-level behavior. DataSource records do not have a notion of whether they are selected.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download a File error RHill Technical Q&A 12 5th Mar 2012 10:07
Get Record from DataSource csdavies Smart GWT Technical Q&A 7 6th Aug 2010 10:23
The Smart GWT FAQ Isomorphic Smart GWT Technical Q&A 0 27th Oct 2009 17:41
Over and selected change in list grid record while using recordCustomStyleProperty saurabhgandhi27 Technical Q&A 1 13th Aug 2008 09:09
Get selected record from datasource zsinnema Technical Q&A 1 29th Aug 2007 11:20

© 2008 and beyond Isomorphic Software. All Rights Reserved