:: Forum >> Version 1 >>

How to disable sorting

Hi,
How can i disable sorting in
2.0.0b version.
Vipin
Thursday, October 6, 2005
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(eventindex){
        
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)
Thursday, October 6, 2005



This topic is archived.

Back to support forum

Forum search