tablecolumn - Prevent certain SlickGrid columns from being reordered -


the drag/drop column reordering great feature, how prevent users moving particular (non-data) columns?

for example, using checkbox selectors mutli-select grid, column should locked left, while other columns can freely reordered.

i looked @ sortable demos on jquery ui , modified setupcolumnreorder function in slick.grid.js exclude items. excluding checkbox column able prevent getting reordered, dragging other columns before it.

function setupcolumnreorder() { var checkboxcolumn = $headers.children([0]).attr('id'); $headers.sortable({ items: "div:not('.slick-resizable-handle','#"+checkboxcolumn+"')", ... 

since checkbox column first, grab id so. bit of hack, worked.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -