This is a migrated thread and some comments may be shown as answers.

serverPaging not working after filtering

4 Answers 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lyndsy Simon
Top achievements
Rank 2
Lyndsy Simon asked on 18 Jan 2012, 09:07 PM
I've got an issue on an internal application.  I've bound a grid and a chart to a dataSource, and serverPaging works fine on it. When I apply a filter to the dataSource, the grid and chart both update to reflect the new data. The grid, however, loses the ability to page - only "1" is displayed.

Is this a bug, or am I implementing the filtering incorrectly?

4 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 19 Jan 2012, 10:25 AM
Hello Lyndsy,

Do you have serverFiltering options enabled? If this is the case this may be a known issue which is already addressed and which fix is available in the internal builds and will be included in the next official release.

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lyndsy Simon
Top achievements
Rank 2
answered on 19 Jan 2012, 03:24 PM
Yes, serverPaging is enabled.

dataset = new kendo.data.DataSource({
    transport:  {
        read: {
            url: 'json/<redacted>/'
            , dataType: 'json'
        }
        , parameterMap: function(options){
            return {
                page: options.page
                , pageSize: options.pageSize
                , skip: options.skip
                , take: options.take
                , filter: JSON.stringify(options.filter)
            }
        }
    }
    , schema: {
        data: function(data) {
            return data.data
        }
        , total: function(data){
            return data.total_rows
        }
        , parse: function(data){
            return data
        }
        , model: model_<redacted>
    }
    , pageSize: 10
    , serverPaging: true
});

Here's hoping this is already a known, fixed bug :)

I looked at your UserVoice portal, but didn't see anything about this. Is there somewhere we can see the proposed release schedule along with the committed changes that are pending?
0
Rosen
Telerik team
answered on 19 Jan 2012, 03:57 PM
Hi Lyndsy,

Could you please set serverFiltering to true and see if this makes any difference in the observed behavior. Note that in this case you should handle the filtering on the server.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lyndsy Simon
Top achievements
Rank 2
answered on 19 Jan 2012, 04:06 PM
Excellent, that works!

I knew to do that, but I must have overlooked it. Thanks!
Tags
Grid
Asked by
Lyndsy Simon
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Lyndsy Simon
Top achievements
Rank 2
Share this question
or