Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
igGrid remote Paging
posted

I have two problems in igGrid when remote Paging.

 

The first, I can not get the queryString in my MVC controller when my igGrid is paging that is using http POST method. My igGrid is initialized like below:

When my igGrid is using http POST method, I can not get the queryString like pageIndex, pageSize in my MVC controller.

If I remove the code requestType:’post’ in my igGrid , the grid use http GET method to remote paging, And it is work to get the queryString like pageIndex, pageSize in my MVC controller.

My Second problem is that : Is there anyway to post the data when igGrid is remote paging ? Because I do a practice that I want get the data from user by igEditors in my webpage and then return the information to user by showing in my igGrid. So, I use the button to create an ajax request which is included the data what the user input in the igEditors, and I can use the data from ajax request in my controller to access my database. But when I click the “Next” button in igGrid for changing the igGrid’s page, I don’t know how to get the data what user input in my webpage when igGrid is doing remote paging to my controller that is set from the dataSourceUrl.

Parents
No Data
Reply
  • 530
    Offline posted

    As for your first question, I believe you can receive the parameters by defining arguments in your GetData().

    e.g.

    public ActionResult GridGetData(string page, string pageSize)
    {
    
        int _currentPageIndex = Convert.ToInt32(page);
        int _pageSize = Convert.ToInt32(pageSize);
    
        ...
    }

    For details, please refer to the attached sample.

    igGrid_remote_paging.zip

    For your second question, I will update here as I have progress on it.

    If you have any question with this, please let me know.

    Best regards,
    Yuki Mita
    Developer Support Engineer
    Infragistics Inc.
    www.infragistics.com/support

Children