javascript - SlickGrid V2 column Resize triggers Sort -


this may artifact quite reproducable (ie only) in couple grids i've built since switch slickgrid v2 (never saw in previous version). when user resizes column, resort method fires which, of course, resorts column.
i've done (which has no effect):

grid.oncolumnsresized.subscribe(function(e, args) {     e.stopimmediatepropagation();     e.stoppropagation();     // alert('resized');     return false; }); 

but, when include alert... works should (no resort). so... i'm thinking it's timing issue. set false, 2 sec timer (does nothing times) , has no effect either (still resorts). can explain what's going on , why alert seems allow work properly. doesn't matter whether use local resort or default slickgrid resort method.

thanks

basically problem ie triggering click event on column when resize. if there column header underneath cursor when mouseup, column resorted.

as why alert box helps, browser events fired in particular order. in ie, dragend (which triggers oncolumnsresized) fired before click (which triggers resort). because they're not of same type, stopping propagation won't anything, it's possible popping alert box prevents ghost click being registered on column header.

this should worked around in slickgrid library, not code uses it.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -