on 08-16-2007 7:47 PM
Hello,
I am implementing the Table Sorter. Its working fiine. Requirement is not to show the sorting icons, but sorting should work. Does anybody have any idea on how to achieve this?.
Thanks,
Sunita.
Just change the TableSorted class. Or do you already use the new Table.onSort event?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Armin,
I am on 04s SP10. I am using Tablesorter.Java class for sorting the columns. I have a 6 column table, in that I need to sort 4 cols. But I shouldnt show them the sorting icons. I am using Table.onsort event, I followed Betram Ganz's web log on how to use it. What do I need to change TableSorted class and where do I need to do that?.
Thanks for help,
Sunita.
Armin,
Thats Client's UI requirement. I already have sortState=NONE, but in the modifyView method, this is what I have:
if (firstTime) {
// view.nowCreateAllCustomExtensionFields();
IWDTable table = (IWDTable) view.getElement("OpportunityTable");
wdContext.currentContextElement().setOppSearchTableSorter(
new TableSorter(table, wdThis.wdGetSortColumnsAction(), null, new String[]{"oppName","customer","status","contraDate"}));
Is this causing the icons to be displayed?. The Icons are still displayed. What else I need to change it?.
Thanks for help,
Sunita.
Hi Sunita,
I think you used Table Sorter java class.
So go to the java class and find the below code.
// set icon in currently sorted column
if (currentlySortedColumn.getHeader() != null)
currentlySortedColumn.getHeader().setImageSource(
reversable.isReversed()
? "Asd.jpg"
: "dec.jpg");
so, just remove the .jpg in the coding and put null.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunita,
when you write a code in WdDoModifyView()...
if(!firstTime)
{
....
}
do not keep the code in if loop. keep the code as a statements..then you do not see sorting icon ..it works for me!
Try it
Regards
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunita,
Let me see if I understand your requirements. Do you want to use the Sort functionality but without the icons in the table? For instance, you want to do the table sort when this table is loaded, is it?
When you are designing the table you can take away with the icons funcionality leaving the table sort functionality.
Leave the table element without an event associated and mark all columns sortState propertie as not sortable.
Call the method to sort the table after populate the node.
Regards.
Luciano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunita,
I dont think that is possible. Those icons show you if it is sorting ascending or descending. I dont think we can possibly hide them.
--MLS
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.