Hi Isomorphic,
I use : Isomorphic SmartClient/SmartGWT Framework (v9.1p_2014-07-03/PowerEdition Deployment 2014-07-03)
I had create a listgrid in which I override the methods createRecordComponent(...) and updateRecordComponent(...) to display a dynamic form for each row.
As you can see in the first print-screen "highlight1", the row highlight is not correct (the DynamicForm is not fully highlighted, and the next one is partially highlighted).
If I add some new data into the grid, the grid "is refreshed" and not the highlight is correct, see in the first print-screen "highlight2".
I don't know if this is a bug or if I do something wrong.
Can you help me to resolve this?
Here is the code to test.
I also attach the source files :
- ComponentGrid.java : The super class of the SearchResultGrid
- SearchResultGrid.java : The grid that display row in component
- SearchResultsPopupItem.java : The dynamic form to display in the grid
The scenario is click on the "create grid" button, you can check that the highlight is not correct.
Then press on the "Add records" button, you can check that now the highlight is correct.
Regards
Julien
I use : Isomorphic SmartClient/SmartGWT Framework (v9.1p_2014-07-03/PowerEdition Deployment 2014-07-03)
I had create a listgrid in which I override the methods createRecordComponent(...) and updateRecordComponent(...) to display a dynamic form for each row.
As you can see in the first print-screen "highlight1", the row highlight is not correct (the DynamicForm is not fully highlighted, and the next one is partially highlighted).
If I add some new data into the grid, the grid "is refreshed" and not the highlight is correct, see in the first print-screen "highlight2".
I don't know if this is a bug or if I do something wrong.
Can you help me to resolve this?
Here is the code to test.
Code:
final SearchResultGrid grid = new SearchResultGrid(); grid.setWidth(500); grid.setHeight(400); final VLayout vLayout = new VLayout(); HLayout hLayout = new HLayout(); Button button1 = new Button("Create grid"); button1.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { grid.addRecords(com.fircosoft.cdb.client.api.application.test.SearchResultGrid.Data.getData()); vLayout.addMember(grid); } }); Button button2 = new Button("Add records"); button2.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { grid.addRecords(com.fircosoft.cdb.client.api.application.test.SearchResultGrid.Data.getData()); } }); hLayout.addMembers(button1,button2); vLayout.addMember(hLayout); vLayout.draw();
- ComponentGrid.java : The super class of the SearchResultGrid
- SearchResultGrid.java : The grid that display row in component
- SearchResultsPopupItem.java : The dynamic form to display in the grid
The scenario is click on the "create grid" button, you can check that the highlight is not correct.
Then press on the "Add records" button, you can check that now the highlight is correct.
Regards
Julien
Comment