cancel
Showing results for 
Search instead for 
Did you mean: 

Table sorter sorting on columns marked as not sort

former_member540174
Participant
0 Kudos

I have a table column that I have marked the sortState as "notSortable". But yet the TableSorter is attempting to sort the column. Am I to code so that the column property is reviewed before the TableSorter class is to be called?

Regards,

Diane

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Usually for sorting functionality following code will be placed in wdModifyView:

wdContext.currentContextElement().setTableSorter(

new TableSorter(

table,

wdThis.wdGetSortAction(),

null,

new String[] {"Column1","Column2"}));

Please dont mention the column name in above set for which sorting is not required.

regards,

ganga

former_member540174
Participant
0 Kudos

Ganga,

Thanks - I'd had the setTableSorter but had missed the last parm where the Columns to be sorted were mentioned.

Regards,

Diane

Answers (0)