Announcement

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

    Reordering column

    I have problem with reordering columns. It's visible also in SmartGWT showcase, in FireFox and Chrome. I have similar behavior with latest SmartGWT night builds on our application. Go to:
    http://www.smartclient.com/smartgwt/showcase/#featured_grid_live
    Step1.png in attachment
    Then i try to reorder SKU with description by dragging SKU right. I finish with something on Step2. What is incorrect. It's even more confusing when filter row is ON. Input fields aren't resized to correct width.
    Attached Files

    #2
    That example invalidly repeats fields with the same name, which is not technically allowed. We will be correcting the sample to get rid of this. If this isn't what's wrong in your own grid, please show a standalone test case that reproduces a problem.

    Comment


      #3
      Try run this code:
      Code:
      	public void onModuleLoad() {
      		DataSourceField fieldA=new DataSourceField("name", FieldType.TEXT);
      		fieldA.setAttribute("width", 50);
      		DataSourceField fieldB=new DataSourceField("code", FieldType.TEXT);
      		fieldB.setAttribute("width", 250);
      		DataSourceField fieldC=new DataSourceField("createdDate", FieldType.DATE);
      		fieldC.setAttribute("width", 80);
      
      		DataSource basicDS=new DataSource("/service");
      		basicDS.addField(fieldA);
      		basicDS.addField(fieldB);
      		basicDS.addField(fieldC);
      		
      		ListGrid listGrid=new ListGrid();
      		listGrid.setWidth100();
      		listGrid.setHeight100();
      		listGrid.setShowFilterEditor(true);
      		listGrid.setCanAddSummaryFields(true);
      		listGrid.setDataSource(basicDS);
      		listGrid.show();
      	}
      - Now right click on title row and select "Add summary column ..."
      - Create new summary column e.g. "#A"
      - Press Save
      - Now try to reorder columns (any) by dragging them left and right. Do you see mess in filter row? Columns in filter row aren't aligned with columns in title row. I can achieve same effect with ListGrid.setViewState but I guess this is same bug.

      TNX

      Comment


        #4
        Thanks for the test case. We've reproduced and now fixed this issue. The fix will be present in the upcoming 2.5 release

        Comment


          #5
          Great, thank you for fix.

          Pavel

          Comment

          Working...
          X