on 06-26-2006 7:31 AM
<b>Can I change the icon of the table sorter in the table header.</b>The icon of up and down arrows are changed at run time like in abap.
Is there any way I can <b>change to the icon found at design time. </b>
The answer was very useful.
But the icon which was imported from a windows icon does not work.
And the icon is not persistent in the table header and
througout the columns. It shows up in front of the table header text.
It is not visible when the page is loaded.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay
Do you use auxilary TableSorter class? If so there are two fields for icons in the class:
/**
* The asceding sorting image to be used.
*/
private String ascImage = "~sapicons/s_b_srtu.GIF";
/**
* The descending sorting image to be used.
*/
private String dscImage = "~sapicons/s_b_srtd.GIF";
Best Regards
Sergei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can change the icons in TableSort.java file.
Following is the code snippet to be changed...
// set icon in currently sorted column
if ( currentlySortedColumn.getHeader() != null )
currentlySortedColumn.getHeader().setImageSource(reversable.isReversed()
? "~sapicons/s_b_srtd.GIF"
: "~sapicons/s_b_srtu.GIF");
Thanks & Regards,
Shiva Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.