I started this thread based on https://forums.smartclient.com/forum...rails-back-end to isolate the question I posted there: How can I send the field names of the ListGrid to the server via the RestDataSource (RubyOnRails server)?
I've tried setting dataProperties.requestProperties.outputs in the grid's init() method and use transformRequest() in a subclass of RestDataSource to send those outputs to the server and this works, until I filter data (via the filterEditor).
I have something working now by overriding fetchData() and filterData() in the subclass of ListGrid I've created:
Is this a correct approach?
I've tried setting dataProperties.requestProperties.outputs in the grid's init() method and use transformRequest() in a subclass of RestDataSource to send those outputs to the server and this works, until I filter data (via the filterEditor).
I have something working now by overriding fetchData() and filterData() in the subclass of ListGrid I've created:
Code:
fetchData: function (criteria, callback, request) { request.fields = this.getAllFields().getProperty('name'); return this.Super('fetchData', [criteria, callback, request]); }, filterData: function (criteria, callback, request) { request.fields = this.getAllFields().getProperty('name'); return this.Super('filterData', [criteria, callback, request]); }, ...
Comment