visv / smartgwt

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

grid cell widget problem #435

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I found there is some problem with grid cell widget at
http://www.smartclient.com/smartgwt/showcase/#grid_cell_widgets

When i remove 'Country' column, then buttons are moves somewhere. is it 
bug?

you can see the grid like step1.gif at 
http://www.smartclient.com/smartgwt/showcase/#grid_cell_widgets

when you remove(deselect?) any column from grid header (step2.gif)

then you can see the buttons are moved front of the grid (step3.gif).

When using widget like above with selection
---------------------------
listGrid.setSelectionType(SelectionStyle.SIMPLE);
listGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
---------------------------
it may show checkbox but can't click any row except header.

and getExpansionComponent(..) doesn't works too.
---------------------------
            @Override  
            protected Canvas 
getExpansionComponent(ListGridRecord record) {  
                HLayout recordCanvas = new HLayout();
                recordCanvas.setPadding(10);
                Label l = new Label("Expanded row");
                recordCanvas.addMember(l);
                return recordCanvas;  
            }  
---------------------------

Original issue reported on code.google.com by cho...@gmail.com on 26 Mar 2010 at 8:26

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by sanjiv.j...@gmail.com on 26 Mar 2010 at 10:53

GoogleCodeExporter commented 9 years ago
Issue 431 has been merged into this issue.

Original comment by sanjiv.j...@gmail.com on 1 Apr 2010 at 5:13

GoogleCodeExporter commented 9 years ago
Fixed in SVN.

Original comment by sanjiv.j...@gmail.com on 1 Apr 2010 at 5:22

GoogleCodeExporter commented 9 years ago
is there a workaround to handle this problem, until the SmartGWT-2.2 release

Original comment by andi...@googlemail.com on 13 Apr 2010 at 8:41

GoogleCodeExporter commented 9 years ago
Use the nightly build from http://www.smartclient.com/builds/smartgwt/

Original comment by sanjiv.j...@gmail.com on 13 Apr 2010 at 8:47

GoogleCodeExporter commented 9 years ago
I'm using maven to build my project and to manage the libraries
smartgwt is coming from the repository http://www.smartclient.com/maven2

anyway, i'll import the nightly build temporary to my local repository

thanks a lot!

Original comment by andi...@googlemail.com on 13 Apr 2010 at 9:23

GoogleCodeExporter commented 9 years ago
You can find the SmartGWT snapshots of mainline here : 
http://www.smartclient.com/maven2/com/smartgwt/smartgwt/2.0-SNAPSHOT/

Note : this will be renamed to 2.x-SNAPSHOT soon.

Original comment by sanjiv.j...@gmail.com on 13 Apr 2010 at 9:33

GoogleCodeExporter commented 9 years ago
hm, used libriries from http://www.smartclient.com/builds/smartgwt/2010-04-12/
but still the same problems with widgets in a listgrid cell...

Original comment by andi...@googlemail.com on 13 Apr 2010 at 9:40

GoogleCodeExporter commented 9 years ago
I'll look into it..

Original comment by sanjiv.j...@gmail.com on 13 Apr 2010 at 9:46

GoogleCodeExporter commented 9 years ago

Original comment by sanjiv.j...@gmail.com on 15 Apr 2010 at 9:54

GoogleCodeExporter commented 9 years ago
Issue 444 has been merged into this issue.

Original comment by sanjiv.j...@gmail.com on 25 Apr 2010 at 11:10

GoogleCodeExporter commented 9 years ago
Issue 442 has been merged into this issue.

Original comment by sanjiv.j...@gmail.com on 25 Apr 2010 at 11:10

GoogleCodeExporter commented 9 years ago
Related issue : http://forums.isomorphic.com/showthread.php?t=10841

Original comment by sanjiv.j...@gmail.com on 27 Apr 2010 at 7:47

GoogleCodeExporter commented 9 years ago
Fixed in SVN.

Original comment by sanjiv.j...@gmail.com on 1 May 2010 at 4:25

GoogleCodeExporter commented 9 years ago
Using smartgwt 2.2 nightly build.

Enabling "setCanRemoveRecords(true)" remains a problem.

To test, add
  countryGrid.setCanRemoveRecords(true);
to GridCellWidgetsSample.java

One can initially remove items, but around the 4th or 5th removal, things go 
wrong.

Original comment by lex...@gmail.com on 10 May 2010 at 9:53

Attachments:

GoogleCodeExporter commented 9 years ago
#15 : unable to reproduce. Try the latest nightly. When reporting issues, 
specify the date of the nightly.

Original comment by sanjiv.j...@gmail.com on 15 May 2010 at 3:43

GoogleCodeExporter commented 9 years ago
I was able to reproduce the problem using the nightly build from May 16, 2010.
(smartgwt-2.2)

Steps to reproduce:
1) Select Grid Cell Widgets (GCW) example in Showcase.
1a) the first time I open this example, I can remove all items cleanly.
2) Close tab containing GCW example.
3) Reopen GCW example.
4) Start removing items. Problems begin with the removal of the second item.
4a) If I now close and reopen the GCW example, the extra column of blank image
buttons remain (see previous image), but the Grid seems to behave properly.

thank you very much Sanjiv

Original comment by lex...@gmail.com on 17 May 2010 at 1:56

GoogleCodeExporter commented 9 years ago
Hi Sanjiv,

the version 2.2 has been released, and the bug seems still to exist, see 
previous comment
but the issue is marked as fixed? why?

regards andre

Original comment by andi...@googlemail.com on 4 Jun 2010 at 7:57

GoogleCodeExporter commented 9 years ago
I've reopened it and will look into the issue.

Original comment by sanjiv.j...@gmail.com on 4 Jun 2010 at 11:44

GoogleCodeExporter commented 9 years ago
Issue 486 has been merged into this issue.

Original comment by sanjiv.j...@gmail.com on 27 Jul 2010 at 1:09

GoogleCodeExporter commented 9 years ago
Used night build 2010-08-12 and the bug seems fixed, but the table cells 
rendering button and images with horizontal layout show a <nobr><br> structure 
that messes the height of the row.

Solved adding the patching css attached. Hope the bug to be fixed as soon as 
possble.

Original comment by dome.san...@gmail.com on 17 Aug 2010 at 10:35

Attachments:

GoogleCodeExporter commented 9 years ago
dome.santoro,
Please post a standalone testcase that demonstrates the issue. Your patch does 
not appear meaningful so a testcase is required.

Original comment by sanjiv.j...@gmail.com on 18 Aug 2010 at 3:46

GoogleCodeExporter commented 9 years ago
I'm kinda new to GWT, and never designed a standalone. Give me some hint and 
i'll pack it, please.

In addition to my patch (and maybe it's enough to avoid the production of the 
standalone app) i can say that i've built a base GWT webapp template on Eclipse 
using the google plugin, copied the showcases code for the grid cell widget 
(just created manually a simple java version of NationRecord class) and 
deployed it. Nothing else...

Analyzing the html rendered i noticed the <br> tag, then included the patch css 
to make it non displayable.

I'll wait for some hint to make things clearer.

Than you

Original comment by dome.san...@gmail.com on 18 Aug 2010 at 9:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I had a situation where custom widgets had wrong vertical position inside a 
ListGrid with grouping. (See image attached)

What was happening was that browser draw placeholder image for group node 
because it was not jet loaded (i'm talking about small triangle image showing 
wheather the gruop is opened or not), then SmartGwt draw table with cell 
widgets, in the meantime browser loaded correct image (triangle) which is 
smaller then the placeholder image, so everything shifted up, leaving custom 
widgets at the wrong position (too low).

I fixed it with preloading related images, in may case:
    FileLoader.cacheImg("images", "[SKIN]/TreeGrid/opener_closed.gif");
    FileLoader.cacheImg("images", "[SKIN]/TreeGrid/opener_opened.gif");

That solved my issue!

Original comment by antebr...@gmail.com on 5 Nov 2010 at 10:00

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed, please try the latest nightly build from 
http://www.smartclient.com/builds

Original comment by sanjiv.j...@gmail.com on 28 Nov 2010 at 10:10