cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting Arrows

nikhil_bose
Active Contributor
0 Kudos

hi experts!

Please tell

1) How can I reduce the space between TableColumnHeader and sorting arrow ?

2) How to disable sorting for particular TableColumn ?

thanks in advance

nikhiL

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member413959
Participant
0 Kudos

Hi,

I have 2 related questions :

1. How the sortstate is working(column property) ?

2. How to use initial sorting (first time) ?

Thanks,F.

nikhil_bose
Active Contributor
0 Kudos

Thanks Miryala.

Again is there any way to reduce the ColumnHeader value and the sorting arrow when Left/Center align is used ?

nikhiL

Former Member
0 Kudos

Hi Nikhil,

> 1) How can I reduce the space between TableColumnHeader and sorting arrow ?

IMHO, it can not be done. If you disable sorting on that column, it may look differently.

> 2) How to disable sorting for particular TableColumn ?

TableColumn has property called "sortState". Set to "notSortable", then you will not see the sorting icon next to header.

[TableColumn Properties|http://help.sap.com/saphelp_nw04s/helpdata/en/bd/5d9041d3c72e7be10000000a1550b0/frameset.htm]

Cheers,

~kranthi

Former Member
0 Kudos

Hi Nikhil,

1) How can I reduce the space between TableColumnHeader and sorting arrow ?

I think there is no option to reduce the space between the TableColumnHeader and sorting arrow

2) How to disable sorting for particular TableColumn ?

In the wdDoModifyView() method pass the column names that you want sort to a method <set<>TableSorter>(context node that you have declared). Marked bold in the below code.

public static void wdDoModifyView(

IPrivateWork wdThis, IPrivateWork.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)

{

//@@begin wdDoModifyView

if (firstTime) {

WDTable table = (IWDTable) view.getElement("Table");

wdContext.currentContextElement().setTableSorter(

new TableSorter(table, wdThis.wdGetSortAction(), null, new String[] { "Column2","Column3" }));

}

//@@end

}

If you want to sort all the columns then pass null instead of column names.

For more information refer to this blog which will definetly help you.

/people/bertram.ganz/blog/2006/03/07/enhanced-web-dynpro-java-tablesorter-for-sap-netweaver-04s

Thanks n Regards,

Jhansi Miryala

former_member413959
Participant
0 Kudos

Hi,

I have 2 related questions :

1. How the sortstate is working(column property) ?

2. How to use initial sorting (first time) ?

Thanks,F.