Skip to content
This repository was archived by the owner on Jul 29, 2022. It is now read-only.

Conversation

cscumming-dwss
Copy link

@cscumming-dwss cscumming-dwss commented Dec 19, 2016

made changes to ExportToExcelUtility.addGenericRow for Issues #3 and possibly #10

However, one caveat: in my application I extended Grid with two convenience methods, which could possibly be included in the Utility

`
public Object[] getVisibleColumns() {
List visCols = new ArrayList();

    for (Grid.Column gcolumn : this.getColumns()) {
    	if (!gcolumn.isHidden()) {
    		visCols.add(gcolumn);
    	}
    }
	return visCols.toArray();
}

public String[] getHeaderColumns() {
	List<String> visCols = new ArrayList<String>();

	//Remove hidden columns
    for (Grid.Column gcolumn : this.getColumns()) {
    	if (!gcolumn.isHidden()) {
    		visCols.add(gcolumn.getHeaderCaption());
    	}
    }
	return visCols.toArray(new String[0]);
}

`

@cscumming-dwss
Copy link
Author

I'm withdrawing the pull request - my code is out of date - @brunojcm code seems address the issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant