:: Forum >> Version 2 >>

GRID column sort(DISABLE)

More information on this topic is available in the documentation section: /active.templates.header/.

my grid has 4 columns, all sortable except for the third column. I dont want the user to be able to sort the grid by clicking on the header of third column. how do i do that?

i noticed that onHeaderClicked() is called when header is clicked & it calls doSort().

# how does the header object get its $name(obj.$name gives 'Header')?
# how do i make the third column un-sortable?
# is there a way to over-ride onHeaderClicked() ?
Siddarth Naik_131226
Wednesday, May 20, 2009
/javascript.forum.20823.1/how-can-i-controle-the.html
/javascript.forum.14820.1/hot-to-disable-the-sorting.html
// disable sort for third column (index=2) 
obj.onHeaderClicked = function(eventindex){
if(
index==2){ return 1// cancels further processing
else{return 0// line not needed ( for example purposes )
}; 
Wednesday, May 20, 2009



This topic is archived.

Back to /active.templates.header/

Documentation:

Forum search