mxui.widget.DataGrid - manipulate _dataSource._currentXPath

0
I wish to manipulate the current XPath of mxui.widget.DataGrid widget types. There exists getCurrentXPath(),  but no obvious setter. Calling something like the following does not reflect the configuration change myGrid._dataSource._currentXPath='//Module.Entity[someXpath]'; myGrid.update();  
asked
1 answers
2

The list view controls widget does XPath manipulation in the following way

widget._datasource._constraints = 'SOME XPATH QUERY';
widget.update(null, callback);

This works for listview and probably also work for data grids.

-Andrej

https://github.com/mendixlabs/list-view-controls/blob/master/src/Shared/DataSourceHelper/DataSourceHelper.ts

answered