ASP.NET MVC 2.0 Implementation of searching in jqgrid

后端 未结 4 811
轻奢々
轻奢々 2020-11-21 07:21

Hi I am trying to use the single column search in jqgrid using MVC 2 IN .NET (VS 2008) this is the code I have so far but I need an example to match it with or a tip of wha

4条回答
  •  无人及你
    2020-11-21 07:54

    It's a lot easier than you think for server side search. Your indexes in your grid will come across in the json call as arguments. Also there is a parameter in the GridSettings argument that will be set to true if it is a search.. It's called IsSearch. There is also a sortorder and column in the GridSettings argument that will help you build dy

    So, you'd have something like this..

    public JsonResult GetUsers(GridSettings gridSettings, string FirstName, string LastName)
    {  
        // conditional logic and queries here and return results)
    }
    

提交回复
热议问题