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

Reply
 
Thread Tools Search this Thread
  #1  
Old 3rd Sep 2012, 21:06
martintaal martintaal is offline
Registered Developer
 
Join Date: Oct 2010
Posts: 333
Default No groupingModes detected when setting getGroupValue on ListGridField

Hi,
When I set groupingmodes/methods on ListGridField level the groupingmodes are not detected. I think this is caused by this line of code in the ListGrid.js:
var groupingModes = ( !field.getGroupValue ?
field.groupingModes ?
field.groupingModes :
( field._simpleType ?
(field._simpleType.getGroupingModes) ?
field._simpleType.getGroupingModes() :
field._simpleType.groupingModes
: false )
: false );

if getGroupValue is defined on field level (which is allowed according to the docs) then no groupingmodes are detected.

I think this issue exists in the most recent 8.3 build of Smartclient also (looking at the source code), but I tested with a version of a few months back.

gr. Martin

Last edited by martintaal; 3rd Sep 2012 at 21:09..
Reply With Quote
  #2  
Old 4th Sep 2012, 15:42
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,525
Default

Although it might make sense as an enhancement, there don't seem to be docs suggesting that you can implement ListGridField.getGroupingModes().
Reply With Quote
  #3  
Old 4th Sep 2012, 23:46
martintaal martintaal is offline
Registered Developer
 
Join Date: Oct 2010
Posts: 333
Default

Hi,
In the version I have the documentation discusses groupingmodes on ListGridField. See the attached screenshot.

gr. Martin
Attached Images
File Type: png Screenshot from 2012-09-05 09:44:56.png (36.0 KB, 4 views)
Reply With Quote
  #4  
Old 5th Sep 2012, 07:29
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,525
Default

Right, groupingModes, not getGroupingModes. And in the code snippet above, you can see that listGridField.groupingModes is indeed checked.
Reply With Quote
  #5  
Old 5th Sep 2012, 07:41
martintaal martintaal is offline
Registered Developer
 
Join Date: Oct 2010
Posts: 333
Default

Maybe I read it wrong but if I check this code snippet then when a field has a getGroupValue then the groupingmodes property is not checked. This is also what my debugging showed to me.

Btw, I did not mention getGroupingModes in my post(s) I only talked about groupingModes, so not sure what initiated your initial remark about getGroupingModes. Let me know if I missed something.

gr. Martin
Reply With Quote
  #6  
Old 5th Sep 2012, 07:55
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,525
Default

Ah, we did misread you initially, we read getGroupValue() as getGroupingModes().

Yes, it seems like getGroupValue() would *have* to be implemented if you wanted to use listGridField.groupingModes to declare multiple custom grouping modes (rather than just hide certain built-in modes), so getGroupValue() being present should not cause listGridField.groupingModes to be ignored.

We'll create a sample of doing this and, in the process, fix this or other bugs as needed.
Reply With Quote
  #7  
Old 5th Sep 2012, 18:52
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,525
Default

This should be fixed for tomorrow's nightly, and there's also a new sample under Grids -> Grouping and Summaries showing usage.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a way to control logging outside war/log4j.isc.config.xml maksymg Smart GWT Technical Q&A 9 7th Jan 2013 01:35
Strange behaviour of ListGrid.setFieldState(fieldState) GuiRider Smart GWT Technical Q&A 5 25th Jun 2012 11:59
How to override ListGrid's RecordClickHandler within ListGridField? kimf Smart GWT Technical Q&A 3 22nd May 2011 22:01
ComboboxItem as a ListGridField EditorType mazzi Smart GWT Technical Q&A 3 8th Apr 2011 11:05
Problem with ListGridField and data paging spreadbeats Smart GWT Technical Q&A 0 2nd Mar 2011 05:51

© 2010,2011 Isomorphic Software. All Rights Reserved