Display a full list without paging on jquery call.

2 posts, 0 answers
  1. Stefan
    Stefan avatar
    15 posts
    Member since:
    Sep 2012

    Posted 10 Sep 2012 Link to this post

    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...
    });
  2. OnaBai
    OnaBai avatar
    55 posts
    Member since:
    Aug 2012

    Posted 10 Sep 2012 Link to this post

    Did you realiza that you have written pagable and not pageable! Is a typo in the post or in your code?
  3. Kendo UI is VS 2017 Ready
Back to Top