jqgrid filterToolbar with spring mvc 3
Greetings all,
Are there any examples for using 'filtertoolbar' with spring mvc 3 ? for my understanding is we need to post a request to the every letter user typed in the text box to the server side and filter the specific column accordingly. is this the right approach to do it? i am using json object that binds with response ('@ResponseBody'). can someone please give me some directions开发者_如何学Go.. one another question is we need to arrange the dataset (json) according to the parameters user sent from the backend and will it be rendered as it is in the jqgrid? if i use .trigger("reloadGrid") ? Thanks in advance for your great help..
I recommend you to use filterToolbar method together with the parameter stringResult: true
. In the case the filterToolbar will work exactly like advance searching and in the parameter filters will be sent JSON encoded filter parameters. If you will use another parameter searchOnEnter:true
, then the data to the server will be send only if the user type Enter key.
Sorry, but your second question "we need to arrange the dataset (json) according to the parameters user sent from the backend and will it be rendered as it is in the jqgrid" I don't understand. Probably the old answer will help you. If you mean something other, please describe your requirement more exactly in another words.
I don't know and don't use spring mvc, but I have seen some tutorials on the http://krams915.blogspot.com site: for example this one. It seems to me that in the examples which you can download will be used filterToolbar, so it could bring you forward.
精彩评论