Status column is a column which contains the CSS classes to be applied to the associated row. This feature is very handy to notify the user of any status per row in the table. By default the four classes: error, warning, info and success are supported which are analogous to the jQuery UI and Twitter Bootstrap frameworks. However, since it is all in the CSS, you are free to modify and use any classes of you choosing.
Datatable dTable = new Datatable("status-table", dtSettings, dtRecords, enableStatusColumn: true);
string[][] dtData = new string[][]
{
new string[] { "first column row 1", "second column row 1", "error" },
new string[] { "first column row 2", "second column row 2", "warning" },
new string[] { "first column row 3", "second column row 3", "info" },
new string[] { "first column row 4", "second column row 4", "success" }
};
Datatable dTable = new Datatable("status-table", dtSettings, dtRecords, enableStatusColumn: true);
First Column | Second Column | |
---|---|---|
first column row 1 | second column row 1 | error danger |
first column row 2 | second column row 2 | warning |
first column row 3 | second column row 3 | info |
first column row 4 | second column row 4 | success |