:: Forum >>
V2.0 how to disable sorting ?
Hi,
I have been using this product since long and i love it !! i have tried the latest version 2.0. I need to disable sorting on headers as i am executing some other function on the header click. In the last version i was using
obj.getTemplate("top/item").setEvent("onmousedown", null);
to disable the sorting, but v2.0 i have no idea how to disable the sorting. i tried using
obj.sort = function(index, direction){return true;}
and
obj.onHeaderMouseDown = function(event, index){ null};
but no success. Please suggest.
thanks,
Samir
Samir
Thursday, November 10, 2005
the only way I have been successful in doing this is to change the grid to aw.tree.grid
this really doesnt suffice for me as i want to disable every aspect of the grid including the sort. it doesnt seem to make sense to change the grid to tree for this purpose
i also tried
obj.onHeaderClicked = function(event,index){return null};
but that didnt work.....
can someone please help?
carol
Friday, November 18, 2005
well, gosh, i wish i had read the forum for just 2 seconds more....
this works:
obj.onHeaderClicked = function(event,index){return 'disabled'};
carol
Friday, November 18, 2005
This topic is archived.
Back to support forum
Forum search