Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: setting the application up for client-changed table content
ydor
Moderator

Posts: 4
Registered: 8/12/2002
Member Is Offline
posted on 8/16/2002 at 08:53 AM Reply With Quote
setting the application up for client-changed table content


For now table sorting is made in only ascending order. If user clicks 'descending sort' arrow, the table content is just reversed. Such way saves about 90% of time on descending data sorting, but does not allow to change table content on client side.

So if you need the table data to be updated at clients after the page is loaded, some modifications to Tigra Tables PRO code are required.

To do them find following lines in 'table.do.ok.js' file (default directory is 'ttp_files'):

if (coln==sort.col) content.body=content.body.reverse()
else Tqs(id,coln-1,0,rows-1,caption.types[coln-1])

and replace these lines with lines:

Tqs(id,coln-1,0,rows-1,caption.types[coln-1])
if (ordn!=0) content.body=content.body.reverse()

Table content is stored in JavaScript array named Ttables[id].content.body, where id is Tigra table zero-based index on a page.

Once you've changed content you should initialise current page index:
Ttables[id].page.c = 0;

clear filtering if needed:
Ttables[id].fil_pat = '';

and repaint the table:
Ttable_show(id);

Please, don't forget what id is and note: a time of sorting in descendindg order after modification will be reduced by a time of sorting in ascending order
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Simple
XP-styled
3D designed
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004