Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Listgrid with record component has trouble on highlighting the row

    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.

    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();
    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
    Attached Files

    #2
    Before we look into this as a possible bug, could you check against the latest SmartGWT nightly build, so we can rule out issues which may have been resolved by framework changes since your build.

    Thanks
    Isomorphic Software

    Comment


      #3
      Hi, I've just test with version SmartGwt 4
      Isomorphic SmartClient/SmartGWT Framework (v9.1p_2015-02-14/PowerEdition Deployment 2015-02-14) - Initialization Complete

      And I have the same result as you can see in the printscreens
      Attached Files

      Comment


        #4
        We added your classes to a project and dropped your sample code to display the grid into a new EntryPoint class, and we're not reproducing this issue with your test case.

        Can you confirm:
        - which browser(s) and OS are you seeing this on.
        - which skin are you loading (what do your GWT inherits look like)
        - verify you aren't loading any additional css files etc to ensure nothing is interfering with standard behavior
        - what are your exact steps to reproduce the bug.
        We have been taking the following steps:
        1. Load the application
        2. Click the button marked "Create Grid"
        3. Roll over the second row

        And for us the row styling appears correctly.

        Thanks
        Isomorphic Software

        Comment


          #5
          Hi Isomorphic,

          I just test with the default skin, it works well. It must be in our skins.

          Thanks a lot

          Julien

          Comment

          Working...
          X