View Full Version : What happened to getAdditionalData in 4.2.x?

2 Apr 2015, 5:50 AM
getAdditionalData used to "Provide additional data to the prepareData call within the grid view."

Now it only seems to exist inside the RowBody feature and I can't use that if I don't want to add additional markup to my grid rows.....right?

...except it doesn't exist in RowBody. It's listed as 'getAdditionalData' in the docs but is called setupRowData in the code base.

14 Apr 2015, 3:05 PM

I checked with engineering and it appears that it getAdditionalData existed initially for the sole benefit of the rowBody class so was relocated to that class in 4.2 (having been attached to the Base class originally in error).

I did explain to engineering the use case you presented previously and we're looking at adding that type of functionality back into a lower class level in the future (though that will be considered for the current version of the framework rather than 4.x).

We're sorry for the inconvenience this may have caused you.

15 Apr 2015, 2:56 AM
So there's a couple of things to address here:

1. getAdditionalData is in the docs for the RowBody feature. This is documented incorrectly. Clicking 'source' takes you to a function called setupRowData

Docs link: http://docs-origin.sencha.com/extjs/4.2.3/#!/api/Ext.grid.feature.RowBody-method-getAdditionalData

Source link: http://docs-origin.sencha.com/extjs/4.2.3/source/RowBody.html#Ext-grid-feature-RowBody-method-getAdditionalData

2. It is possible to put this functionality back in place in a general feature you're creating from scratch. I may post more about this in future if my employer lets me but until then, if you use the RowBody feature as inspiration, you should be able to work it out.