hello again.
i have a simple question, but may be a bit difficult for to do that.
if it possible to make datagrid header format like this ?:
___________________________________
| column band |
header 1 |---------------------------------- |
| col 1 | col 2 | col 3 |
|---------------------------------- |
|sub col 1 | sub col 2 | sub col 3|
-----------------------------------------------
i already try to make datagrid achieve just like that, but the result not as expected.
here my code:
list_data.datagrid({
// url: "#{sc_load_data_audit_trials_path(:prm => params[:prm])}",
method: "get",
fit: true,
title: "Audit Trails",
idField: "id",
toolbar: "#tb_list_data",
resizeHanlde: "right",
striped: true,
rownumbers: true,
frozenColumns: [
[{field: 'field_name', title: "Field Name / State", width: 150, sortable: false, halign: 'left', align: 'center', rowspan: 2}],
[]
],
columns: [
[
[{title: 'test 1', colspan: 3, halign: 'center'}],
[
{field: 'test1', title: 'test1', colspan: 1},
{field: 'test2', title: 'test1', colspan: 1},
{field: 'test3', title: 'test1', colspan: 1}
]
],
[
{field: 'test1', title: 'test1'},
{field: 'test2', title: 'test1'},
{field: 'test3', title: 'test1'}
]
]
});
thanks in advance