on 05-27-2007 8:17 AM
Hi,all
I need to execute tableSorter at the first time my table is showing.
I fill my table in DoInit() method and call the initialSort() method which
I created.
initialSort()
{
wdContext.currentContextElement().getTableSorter().sort("Column2",wdContext.nodeUserTable());
}
But initialSort is not executed.Why?
Regards,
Michael
Hi ,
You need to first set the TableSorter like this in wdDoModifyView..
if (firstTime) {
IWDTable table = (IWDTable) view.getElement("ShoppingBasket");
wdContext.currentContextElement().setTableSorter(
new TableSorter(table, wdThis.wdGetSortAction(), null));
}
If it does not work even after it is added , you can put the .sort function also inside wdDoModifyView's
if(firstTime)
.
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
after sorting, set the Leadselelction to '0'
like wdContext.nodeX.setLeadSelection(0);
AM
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 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.