0

I have a listgrid that I am grouping by the method setGroupByField but I cant see that groups, the method getGroupByFields returns null and then not know why is grouping not if I'm putting the property and the name of field I want to group ... any ideas? here the code.

setGroupByField(CdmsConstants.class_desc) setGroupStartOpen(GroupStartOpen.ALL) setShowGridSummary(true) setShowGroupSummary(true) setShowGroupSummaryInHeader(true)

Thanks.

NOTE. i see in the documentation that the method getGroupByFields returns the names of the field(s) by which this grid is grouped, but if is null, thats means that is not grouped..

Mariah
  • 1,073
  • 1
  • 14
  • 33
  • im testing the grid and i see that the method getGroupByFields lost the configuration after made a Asynchronous call to RPC ... but i dont know why... some ideas? – Mariah Jul 03 '12 at 04:36

1 Answers1

0

setGroupByField() is to use before initialization of listgrid. If you need to group by after initialization, you have to use groupBy(). Have you tried using groupBy([yourFieldName])?

Eric C.
  • 3,310
  • 2
  • 22
  • 29
  • Erick and I thank you very much fixed the problem, but I was wondering if I can ask you some questions about GWT, you can add you to my messenger contacts? – Mariah Jul 04 '12 at 18:48
  • I'm not a GWT pro. I started creating smartgwt applications just a while ago but I ran into the same problems as yours when trying to use groups in listgrids. Don't hesitate to post your problems in stackoverflow as most of the time, your questions will be answered !! – Eric C. Jul 09 '12 at 15:28
  • thanks Erik i have a question, its possible to custom the grid summary formula and group summary formula??? that make different things? are this possible? – Mariah Jul 10 '12 at 00:18
  • I saw your other question but i'm not able to answer that. I never tried the grid summary sorry – Eric C. Jul 10 '12 at 08:18