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

Reply
 
Thread Tools Search this Thread
  #1  
Old 15th Feb 2012, 09:07
pab pab is offline
Registered Developer
 
Join Date: Jul 2009
Posts: 14
Default Custom ListGrid gridComponent Disappearing From View

Please see the documentation in the sample code below:

Code:
//////////////////////////////////////////////////////////////////////
//
// Problem:
//
//   The following example contains two ListGrids in a VLayout.
//   Each ListGrid contains a custom ToolStrip item at the bottom
//   of the ListGrid.  The top ListGrid has showResizeBar set to
//   true so that the user can resize the display.  After performing
//   the resizing cases outlined below, one of the ListGrids "loses"
//   the ToolStrip off the display when it should be shown.
//
// Environment:
//
//   - OS: Linux (Ubuntu 11.04)
//   - SmartClient Version 8.2 LGPL
//   - Tested on browser: Firefox 10.0.1
//
// Notes:
//
//   NOTE 1: Also tested on Chrome 16.0.912.77 and experienced
//   similar behavior where the ToolStrip "disappeared".  Some
//   testing on Chrome also resulted in the ToolStrip appearing to be
//   "floating" in the browser versus at the bottom of the ListGrid.
//
//   NOTE 2: If the data is removed from the ListGrids, the odd
//   behavior does not occur.
//
// To Recreate:
//
//   - Case #1:
//     -- load/reload this example in browser
//     -- click resize bar so that the bottom ListGrid fills the layout
//     -- click resize bar so that the two ListGrids are shown again
//     -- drag the resize bar all the way to the bottom of the screen
//     -- drag the resize bar all the way to the top of the screen
//     -- drag the resize bar to the middle of the screen
//     -- the ToolStrip on the bottom ListGrid disappears out of view
//
//   - Case #2:
//     -- load/reload this example in browser
//     -- drag the resize bar all the way to the bottom of the screen
//     -- drag the resize bar all the way to the top of the screen
//     -- drag the resize bar to the middle of the screen
//     -- the ToolStrip on the bottom ListGrid disappears out of view
//
//   - Case #3:
//     -- load/reload this example in browser
//     -- drag the resize bar all the way to the top of the screen
//     -- drag the resize bar all the way to the bottom of the screen
//     -- drag the resize bar to the middle of the screen
//     -- the ToolStrip on the top ListGrid disappears out of view
//
//////////////////////////////////////////////////////////////////////

ts1 = isc.ToolStrip.create( { members : [ isc.ToolStripButton.create( { title : "ts1" } ) ] } );

ts2 = isc.ToolStrip.create( { members : [ isc.ToolStripButton.create( { title : "ts2" } ) ] } );

lg1 = isc.ListGrid.create(
{
  data :
  [
    { "lg1_field" : "row1" },
    { "lg1_field" : "row2" },
    { "lg1_field" : "row3" },
  ],
  fields         : [ { name : "lg1_field" } ],
  gridComponents : ["header", "filterEditor", "body", ts1],
  showResizeBar  : true
});

lg2 = isc.ListGrid.create(
{
  data :
  [
    { "lg2_field" : "row1" },
    { "lg2_field" : "row2" },
    { "lg2_field" : "row3" },
  ],
  fields         : [ { name : "lg2_field" } ],
  gridComponents : ["header", "filterEditor", "body", ts2],
});

isc.VLayout.create(
{
  height  : "100%",
  members : [ lg1, lg2 ],
  width   : "100%"
});
Thanks,
Andy
Reply With Quote
  #2  
Old 15th Feb 2012, 09:08
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 35,751
Default

Use the latest patched version (8.2p) from smartclient.com/builds.
Reply With Quote
  #3  
Old 15th Feb 2012, 09:26
pab pab is offline
Registered Developer
 
Join Date: Jul 2009
Posts: 14
Default

Thank you for the quick response!

One other question: For production environments is it recommended to use the patched versions of SmartClient or is it better to wait for an official release? In other words, are the patched versions stable?

Thanks again,
Andy
Reply With Quote
  #4  
Old 15th Feb 2012, 09:27
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 35,751
Default

Use the patched versions, they contain only fixes relative to the release.
Reply With Quote
  #5  
Old 15th Feb 2012, 09:32
pab pab is offline
Registered Developer
 
Join Date: Jul 2009
Posts: 14
Default

Thanks again.
Andy
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
ListGrid disappearing body PhoenixClearwater Smart GWT Technical Q&A 5 24th Jan 2012 06:52
SC_SNAPSHOT-2012-01-07_v82p missing files and not working RickBollinger Installation 23 13th Jan 2012 08:42
ListGrid with custom control in cells pgrever Smart GWT Technical Q&A 9 7th Dec 2011 16:17
Custom Data Type in ListGrid vs. SortNormalizer yavery Technical Q&A 2 13th Jul 2011 13:08
Custom DataSourceField in ListGrid ceravolo Smart GWT Technical Q&A 5 25th May 2009 14:43

© 2010,2011 Isomorphic Software. All Rights Reserved