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

Reply
 
Thread Tools Search this Thread
  #1  
Old 29th Jul 2010, 05:10
casper.bang casper.bang is offline
Registered Developer
 
Join Date: May 2010
Posts: 20
Default Filter a ListGrid without a datasource?

Unfortunately it seems that in order to use a FilterBuilder on ListGrid, you are required to tie the grid to a datasource. What if I have already loaded data into my grid via setData(...) and just want to filter the content rather than issue a new call to the datasource? I tried to look into subclass ListGrid but is unable to find a isVisible(Record ...) or render(Record ...) or similar cthat I can override.

Any suggestions?
Reply With Quote
  #2  
Old 29th Jul 2010, 06:00
davidj6 davidj6 is offline
Registered Developer
 
Join Date: Jan 2008
Posts: 530
Default

Instead of loading data directly into the grid, create a client-only datasource and load it the same way. This way you get all the benefits of a datasource AND your personal loading style. Datasources are a key component of the features and flexibility of SGWT.
Reply With Quote
  #3  
Old 29th Jul 2010, 06:10
casper.bang casper.bang is offline
Registered Developer
 
Join Date: May 2010
Posts: 20
Default

Quote:
Originally Posted by davidj6
Instead of loading data directly into the grid, create a client-only datasource and load it the same way. This way you get all the benefits of a datasource AND your personal loading style. Datasources are a key component of the features and flexibility of SGWT.

Yeah I understand that, unfortunately it's not really an option as this grid is a slave to another grid (master-detail) and I already have all the data client-side.
Reply With Quote
  #4  
Old 29th Jul 2010, 14:38
davidj6 davidj6 is offline
Registered Developer
 
Join Date: Jan 2008
Posts: 530
Default

Why can't you push the client-side data into a client-only data source and then assign it to the grid? Perfectly normal way to do things when a server connection is not needed or wanted.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


©2006 Isomorphic Software   ·   Terms of use