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

Display a full list without paging on jquery call.

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 2
Stefan asked on 10 Sep 2012, 11:29 AM
Hi!

I want to display a full list of my grid without any paging.

@(Html.Kendo().Grid(Model)
    .Name("GridField")
    .Columns(columns =>
    {
        columns.Bound(item => item.SalonID);
        columns.Bound(item => item.Avtnr);
        columns.Bound(item => item.SalonName);
        columns.Bound(item => item.Street);
        columns.Bound(item => item.ZipCode);
        columns.Bound(item => item.City);
        columns.Bound(item => item.Telephone);
        columns.Bound(item => item.SalonEmail);
        columns.Bound(item => item.Description);
        columns.Bound(item => item.ContactPerson);
    })
    .ColumnMenu()
    .Groupable()
    .Pageable()
    .Sortable()
    .Resizable(resize => resize.Columns(true))
    .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
  
    .DataSource(dataSource => dataSource
        .Ajax()
        .Read(read => read.Action("Read", "Salon"))
        .ServerOperation(false)
    )
    .Events(events => events.Change("grid_selected"))
)
$("#FilterShowAll").click( function()
 {
    var grid = $("#GridField").data('kendoGrid')
    grid.dataSource.filter({});
grid.pagable(false); // Error here...
});

1 Answer, 1 is accepted

Sort by
0
OnaBai
Top achievements
Rank 2
answered on 10 Sep 2012, 12:16 PM
Did you realiza that you have written pagable and not pageable! Is a typo in the post or in your code?
Tags
Grid
Asked by
Stefan
Top achievements
Rank 2
Answers by
OnaBai
Top achievements
Rank 2
Share this question
or