0

我在我的项目中使用 jqgrid 高级搜索功能。无论搜索如何,我都想始终显示第一行。有没有办法我可以做到这一点?

4

1 回答 1

0

What do you mean by first overall row?

Are you fetching details from a list or from a database?

You can use a Dataprovider object and use it's setSort method..

If the data is coming from a database this can easily be done by using the sort property to pass it as the sort by property in your sql statement, if you're using a list you can use Collections.sort() but your list object has to have a sorting algo that it should follow..

于 2013-01-24T09:33:42.633 回答