dojox.grid - Not able to add checkboxes to last column in dojo enhanced grid -


i creating dojo grid below , using indirectselection plugin creating checkbox, below, default checkboxes come @ first column of grid. how make come @ last column?

var grid = new dojox.grid.enhancedgrid({         id: 'serialsgrid',         style: 'width:auto;height:250px;',         store: store,         structure: layout,         rowselector: '20px',         plugins: {             indirectselection: {name:'requested',headerselector:true, width:"40px", styles:"text-align: center;"},           pagination: {               pagesizes: ["25", "50", "100", "all"],               description: true,               sizeswitch: true,               pagestepper: true,               gotobutton: true,                       /*page step displayed*/               maxpagestep: 4,                       /*position of pagination bar*/               position: "bottom"           }         }     }, document.createelement('div'));      /*append new grid div*/     //var temp=grid.domnode;     dojo.byid("serialsgriddiv").appendchild(grid.domnode);     /*call startup() render grid*/     serialsgridcopy=grid;     grid.startup(); }); 

the plugin has no capabilities of doing far know started looking @ functions enhancedgrid has , stumbled upon function movecolumn() in grid.layout. documentation (here) not usefull, used move every column 1 position ahead first column become last one.

i made working jsfiddle demonstrate can see here. code moving columns can found @ bottom of code:

for (var = 1;i < grid.layout.cells.length;i++) {     grid.layout.movecolumn(1, 1, i, i-1, grid.layout); } 

what following: moves every column starting index 1, means columns except indirectselection column 1 step ahead (i-1).


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -