I have a ListGrid that gets it's fields from a datasource. I need to add some features to selected fields such as summary functions before the grid is first drawn. Prior to release 2.1 I had code that used ListGrid.getOrCreateJsObj() and then was able to get the list of fields and apply the additional features. After installing 2.1 this code no longer works. I now have to call ListGrid.draw before I can get the list of fields. What is the correct way to get the ListGridFields and do things to them before the grid is drawn?
I know I can add the specific fields I need to the grid and then setUseAllDataSourceFields(true) but that causes the fields I have explicitly set to come first, when what I want is the fields to the in the order they are specified in the datasource, just with my additional features added.
I know I can add the specific fields I need to the grid and then setUseAllDataSourceFields(true) but that causes the fields I have explicitly set to come first, when what I want is the fields to the in the order they are specified in the datasource, just with my additional features added.
Comment