WelcomeForumsCommunityGrid – jQuery.ajaxSettings.traditional = true

Wijmo Team Member
hjh posted on May 31, 2012 at 6:07 pm link

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 link

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 link

Thanks it works great. I used the same idea on the sorting fields.

Answer

This topic has 2 voices, contains 2 replies, and was last updated by  hjh 352 days ago.

You must be logged in to reply to this topic.