3.0.5

How to disable sorting

Hi,
How can i disable sorting in
2.0.0b version.
Vipin
October 6,
If you want to do something else when user clicks header - attach onHeaderClicked action handler and return true to cancel further action processing (i.e. sort):

obj.onHeaderClicked = function(event, index){
        window.status = "Header clicked: " + index;
        return true; // cancels further processing
    };


if you want to disable both mouse click and mouseover highlighting - use this code:

obj.getHeaderTemplate().setAttribute("aw", "");


Instead of attaching multiple mouse event handlers to each cell or header (which heavily affects parsing time) I use special attribute (aw) to indicate that this element has to process mouse events (click, doubleclick, mouseover/out, mousedown/up)
Alex (ActiveWidgets)
October 6,

This topic is archived.

See also:


Back to support forum