hgs1906 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Grouping/Ungrouping a ListGrid with Grid Cell Widgets messes up layout #457

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Grouping/Ungrouping a ListGrid with Grid Cell Widgets messes up widgets
layout in the grid.

What steps will reproduce the problem?
1. Go to the ListGrid with Grid Cell Widgets example in the Smart GWT Showcase
2. Group by continent
3. All widgets mess up

What version of the product are you using? On what operating system?
SmartGWT 2.1

Original issue reported on code.google.com by RKums...@gmail.com on 6 May 2010 at 4:43

GoogleCodeExporter commented 9 years ago
This is fixed in SVN. Try the latest nightly.

Original comment by smartgwt...@gmail.com on 6 May 2010 at 5:09

GoogleCodeExporter commented 9 years ago
Just did, Thanks works fine.  Although the Cell Widgets get added to the 'group
title' rows as well.  Is this a desired behavior?

Original comment by RKums...@gmail.com on 6 May 2010 at 5:13

GoogleCodeExporter commented 9 years ago
Post a screenshot of what you're seeing and describe the steps that will 
reproduce this in the showcase sample.

Original comment by sanjiv.j...@gmail.com on 8 May 2010 at 4:31

GoogleCodeExporter commented 9 years ago
I was able to reproduce it. Will look into it.

Original comment by sanjiv.j...@gmail.com on 8 May 2010 at 4:36

GoogleCodeExporter commented 9 years ago
"Although the Cell Widgets get added to the 'group title' rows as well.  Is 
this a desired behavior?"

This has been fixed and will appear in the next nightly.

Original comment by sanjiv.j...@gmail.com on 9 May 2010 at 10:41

GoogleCodeExporter commented 9 years ago
Using revision 1238, I am still seeing the cell widgets for the 'group title' 
rows as
well.

Is the fix in nightly 1238?

Original comment by RKums...@gmail.com on 10 May 2010 at 10:57

GoogleCodeExporter commented 9 years ago
sorry, the fix is not yet committed. Will commit it later today.

Original comment by sanjiv.j...@gmail.com on 10 May 2010 at 12:46

GoogleCodeExporter commented 9 years ago
"Although the Cell Widgets get added to the 'group title' rows as well.  Is 
this a
desired behavior?"

I verified that this has been fixed for the 'group titles', but now I have 
found that
cell widgets also get added to the Group Summary as well, if 
setShowGroupSummary is
set to true.

Original comment by RKums...@gmail.com on 13 May 2010 at 1:51

GoogleCodeExporter commented 9 years ago
I fixed this issue by adding 

if (record.getIsGroupSummary())
{
    return null;
}

in my override of createRecordComponent method

Original comment by RKums...@gmail.com on 13 May 2010 at 2:01

GoogleCodeExporter commented 9 years ago
Calling grid.reDraw() doesn't update cells with cell widgets in them.  Is this a
desired behavior?

On save/update of new values I am calling grid.reDraw() to get the new values 
into
the grid, but grid cells with widgets in them do not get updated.  I need these 
cells
to update with the new text.

Is there currently a way to accomplish this?

Original comment by RKums...@gmail.com on 13 May 2010 at 4:39

GoogleCodeExporter commented 9 years ago
A cell with a wrapping Label using:

grid.setFixedRecordHeights(false);
grid.setWrapCells(true);
grid.setRecordComponentPosition(EmbeddedPosition.EXPAND)

Does not expand the row height when the Label wraps/unwraps.  The label wraps 
into
the other grid rows and makes it unreadable.

Original comment by RKums...@gmail.com on 13 May 2010 at 5:47

GoogleCodeExporter commented 9 years ago
This issue has been marked fixed. If you have other issues, post a new issue 
along with a complete standalone 
test case. 

If you have a question, post it on the forum.

Original comment by sanjiv.j...@gmail.com on 13 May 2010 at 11:37