DataGrid (data table) component [9]

Source: Internet
Author: User

This lesson focuses on how the DataGrid (data table) component is used in Easyui, which relies on
Panel, resizeable (resizing), LinkButton (button), pageination (pagination) components.
A The rest of the way to drink more events

+

Partial events
Onclickrow:function (RowIndex, RowData) {
Alert (' Trigger when one row is clicked! ‘);
},
Onclickcell:function (RowIndex, field, value) {
Alert (' Triggers when a cell is clicked! ‘);
},
Onunselect:function (RowIndex, RowData) {
Alert (' Trigger when a row is unselected! ‘);
},
Oncheck:function (RowIndex, RowData) {

Alert (' Trigger on one line ' tick! ‘);
},
Oncanceledit:function (RowIndex, RowData) {
Alert (' Trigger when editing a line '! ‘);
},
Onsortcolumn:function (sort, order) {
Alert (' Sort trigger! ‘)
}

Partial methods
$ (' #box '). DataGrid (' DeleteRow ', 0);
$ (' #box '). DataGrid (' Checkall ');
$ (' #box '). DataGrid (' Highlightrow ', 0);
$ (' #box '). DataGrid (' MergeCells ', {
index:0,

Field: ' User ',
Rowspan:2,
});
$ (' #box '). DataGrid (' MergeCells ', {
index:0,
Field: ' User ',
Colspan:2,
});

DataGrid (data table) component [9]

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.