| Wijmo Team Member | hjh posted on May 31, 2012 at 6:07 pm In a project we need the following setting jQuery.ajaxSettings.traditional = true; Which cause the grid to false fill the request.param for paging. Is there a setting for the grid for using traditional=true. | |
| Wijmo Team Member | sergeys posted on June 1, 2012 at 1:36 am Try to reformat parameters in the wijdatasource.loading event handler:
$(‘#demo’).wijgrid({
data: wijdatasource({
loading: function(dataSource) {
var data = dataSource.proxy.options.data;
data.pageSize = data.paging.pageSize;
data.pageIndex = data.paging.pageIndex;
delete data.paging;
}
})
});
> Which cause the grid to false fill the request.param for paging jquery.ajax() does not serialize complex objects when traditional: true. | Answer |
| Wijmo Team Member | hjh posted on June 1, 2012 at 9:09 pm Thanks it works great. I used the same idea on the sorting fields. | Answer |
Tagged: ajax, ajaxsettings, jQuery
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.