Hi,
We have a ListGrid that has one or more nested fields. They are declared as ListGridFields using the property dataPath as following :
Moreover, we have to sort and filter on server side, so we disabled client sorting/filtering through setUseClientFiltering(false) and setUseClientSorting(false).
But when we try to sort our grid on a nested field, the Json value of the sortBy element is not the dataPath but the name of the field, which is different from the filtering behavior.
To allow a correct behavior of our algorithm on server side, we need that information to perform a correct sorting.
current JSON :
expected JSON :
Did you already encounter this problem? Is there a way to fix it?
Thanks.
I'm using the following versions:
Isomorphic SmartClient/SmartGWT Framework (v10.0p_2015-11-20/Pro Deployment 2015-11-20)
GWT 2.7
Firefox 38
We have a ListGrid that has one or more nested fields. They are declared as ListGridFields using the property dataPath as following :
Code:
final ListGridField serviceCodeField = new ListGridField("serviceCode", MESSAGES.serviceCode());
serviceCodeField.setDataPath("service/code");
But when we try to sort our grid on a nested field, the Json value of the sortBy element is not the dataPath but the name of the field, which is different from the filtering behavior.
To allow a correct behavior of our algorithm on server side, we need that information to perform a correct sorting.
current JSON :
Code:
{
"dataSource":"isc_DataSourceFactory_1_0",
"operationType":"fetch",
"startRow":29,
"endRow":104,
"sortBy":[
[B]"-serviceCode" [/B]
],
"textMatchStyle":"exact",
"componentId":"VodContentListViewImpl_grid",
"data":{
},
"oldValues":null
}
Code:
{
"dataSource":"isc_DataSourceFactory_1_0",
"operationType":"fetch",
"startRow":29,
"endRow":104,
"sortBy":[
[B]"-service/code"[/B]
],
"textMatchStyle":"exact",
"componentId":"VodContentListViewImpl_grid",
"data":{
},
"oldValues":null
}
Did you already encounter this problem? Is there a way to fix it?
Thanks.
I'm using the following versions:
Isomorphic SmartClient/SmartGWT Framework (v10.0p_2015-11-20/Pro Deployment 2015-11-20)
GWT 2.7
Firefox 38
Comment