[CLOSED] MVC paging - page size problem

  1. #1

    [CLOSED] MVC paging - page size problem

    Last edited by Daniil; Oct 30, 2012 at 3:22 PM. Reason: [CLOSED]
  2. #2
    In example AutoLoad is "false", but I need with "true" value.
  3. #3
    And every time I click on the next page on pager, in the grid adds 3 new rows below the previous.
  4. #4
    Hi @boris,

    Please demonstrate the "GetProjekti" controller action.
  5. #5
    Please remove AutoLoadParameters and ensure that controller action returns requested data only (data between start and start+limit collection), also you have to return total count
  6. #6
    Here is controller action:

    public AjaxResult GetProjekti() 
            {
                IProjekat dao = new ProjekatDAO();
                List<Projekat> _Projekat = dao.List();
                
                var data = from projekat in _Projekat
                           orderby projekat.Prj_Naziv ascending
                           select projekat;
    
                AjaxResult ajaxResult = new AjaxResult() { Result = JSON.Serialize(data) }; 
                return ajaxResult;
            }


    Vladimir
    Please remove AutoLoadParameters and ensure that controller action returns requested data only (data between start and start+limit collection), also you have to return total count
    Do you have an example for this here? Best practice...
  7. #7
    Quote Originally Posted by boris View Post
    Do you have an example for this here? Best practice...
    The example is available in SVN.
    Ext.Net.MVC.Examples\Areas\GridPanel_Paging_and_Sorting\Views\Remote\Index.cshtml
  8. #8
    You have to use StoreResult instead AjaxResult because it is store's request

Similar Threads

  1. [CLOSED] How to change the page size
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 03, 2012, 12:53 PM
  2. [CLOSED] store.insert method + store page size problem
    By mcfromero in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 12, 2012, 6:34 AM
  3. [CLOSED] PagingToolbar - save page size
    By pj_martins in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 19, 2011, 7:27 PM
  4. [CLOSED] Minimum size of a page
    By majunior in forum 1.x Legacy Premium Help
    Replies: 41
    Last Post: Jun 26, 2011, 7:22 PM
  5. [CLOSED] page size selector
    By alexp in forum 1.x Help
    Replies: 2
    Last Post: Nov 24, 2008, 10:36 AM

Tags for this Thread

Posting Permissions