In order for everyone to better learn and use the Jqgrid mesh plug-in, I decided to use Strtus2 + Spring + hibernate + Jquery + Jqgrid to implement a demo of the Jqgrid mesh plug-in. Of course, the official website above has PHP version and ASP. NET version of the DEMO, address: http://www.trirand.com/blog? Page_id = 5. I am working on a java version. To improve the user experience, the page and the background adopt ajax interaction, and the whole process is refreshing. If you do not know the strength of the Jqgrid plug-in or the basic usage of Jqgrid, go to www.javakfz.com to check out the Jqgrid article. This article focuses on the demo, so it won't be too deep into the grid plug-in. No more nonsense. First, let's take a panorama. This is the most basic requirement. You can display data by PAGE and click any column name to sort the data. You can enter the Student name to automatically prompt (similar to the effect of Baidu ), the five buttons in the lower-left corner are the addition, deletion, modification, and query functions. I didn't implement them in this way, but the display shows that this function is available. For example, sort by age: the age is in the ascending order, and click the column header again to sort it in reverse order. For example, there are too many students in the class. You know his name, but you don't know what page he is on. Therefore, we need to provide a fuzzy query function. For example, if you ENTER "Li" in the Student name input box, the student surnamed Li will be displayed in the drop-down list box. You can select the upper and lower keys. Click the selected student and then press ENTER to implement the query function.: If you select Li Jun, click ENTER.: Of course, if only the word "Li" is entered and no specific student is selected, all the students surnamed Li will be queried. The items in the drop-down list are separated by names and student IDs. For more information, see the code in action. The implementation of the second-level header, which is mainly used for comparison. To compare the student's score changes over a few months. It can be implemented using a second-level header, which is also intuitive in data expression. The basic information in the figure is the second-level header, which is divided into three sub-items: name, age, and gender. It is more convenient to compare data changes in the second-level header. The second-level table header compares column data. What should we do if we want to compare row data? You can use column support. Select the data and hold the left mouse button to drag it. For example, we need to drag Zhang Minsheng and Li Jun to the last two lines on this page. Drag effect: drag to a specific position to intuitively compare the changes of row data. However, this refresh page does not exist. Data grouping, which is similar to the group by statement, for example, grouping by residential address. Let's see where there are many people and where there are fewer people.: Recently, I have been busy working, and I don't have much time to send emails to you. Go to my Baidu online storage to extract the emails. Http://pan.baidu.com/share/link? Author ID = 2574304010 & uk = 587859240 extraction code: x79g please follow www.javakfz.com and will update Original Articles occasionally. Your attention will be my greatest motivation!