![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 18 Pomógł: 0 Dołączył: 24.03.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam.
chce w naglowku mojej tabeli, w kolumnie IndirectSelection umiescic CheckBox, ktorego klikniecie bedzie zaznaczalo/odznaczalo wszystko. moj kod wyglada nastepujaco: var layout = [ {field: 'agency',name: 'Agency',width: 'auto'}, {field: 'action',name: 'Action',width: 'auto'}, {field: 'origin',name: 'Origin',width: 'auto'}, {field: 'family',name: 'Family',width: 'auto'}, {field: 'type',name: 'Type',width: 'auto'}, {field: 'status',name: 'Status',width: 'auto'}, {field: 'priceEntity',name: 'Price entity',width: 'auto'}, {field: 'code',name: 'Code', width: 'auto'}, {field: 'name',name: 'Journal',width: 'auto'}, {field: 'debitAccType',name: 'Debit', width: 'auto'}, {field: 'creditAccType', name: 'Credit', width: 'auto'}]; // create a new grid: grid = new dojox.grid.EnhancedGrid( { query: { id: '*' }, clientSort: true, rowSelector: '20px', structure: layout, plugins: { indirectSelection: { type:dojox.grid.cells.Bool, editable:true, width: "20px" styles: "text-align: center;" } } }, document.createElement('div') ); znalazlem w necie, ze trzeba komorke zmienic na editable i typu Bool, niestety nie dziala. jakies pomysly? thx |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 02:05 |