JQuery Application JQuery.groupTable.js_jquery

Source: Internet
Author: User

I wrote a jquery plugin. To achieve the effect of grouping.

Figure 2. This is a simple grouping effect, grouped by "Department" in the first column of the table

Figure 3, you can also group multiple columns, grouped by the first column "Department" and the fourth column "Gender". Before grouping, sort the columns you want to select, which can be done when you extract the data.

is not implemented on the client side.

Figure 4. You can set the parameter collapse=1. Let the table contract first. Its default value is 0;

By writing this jquery control, you are acutely aware of its power. The entire code is less than 100 lines.

Inside the asp.net. When the GridView is displayed by default, the tbody tag is not added. In order for the GridView class capacity to be displayed in Tbody, the following code can be added to page load

gridview1.useaccessibleheader=true;              
GridView1.HeaderRow.TableSection = tablerowsection.tableheader;     & nbsp;          
GridView1.FooterRow.TableSection = Tablero Wsection.tablefooter;

So that you can use jquery.grouptable to handle the GridView-generated table.

Pack-and-download

Welcome your comments.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.