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

[Solved] AJAX paging problems

0 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
tdekoekkoek
Top achievements
Rank 1
tdekoekkoek asked on 08 Apr 2010, 04:15 AM
I can't get ajax paging to work in the latest version.  I don't know now the model sets the Total property automatically in the controller.  But even if I set it manually, the value seems to be ignored.  In my controller if I have a Total of 10, but set my paging size to 2, then the total also gets set to 2.  Also setting the total in the view is ignored:

<%= Html.Telerik().Grid<TCMS.Domain.DTO.CMSWebsiteGridInfo>()
        .Name("Websites")
        .DataBinding(dataBinding => dataBinding
              //Ajax binding
              .Ajax()
                   //The action method which will return JSON
                   .Select("_GetGridData", "CMSWebsite")
        )
        .Pageable(a=>a.PageSize(2).Total(10))
        .Sortable()
        .Scrollable()
        .Groupable()
        .Filterable()%>
Tags
Grid
Asked by
tdekoekkoek
Top achievements
Rank 1
Share this question
or