|
List Info
Thread: sorting data on list pages, date validation
|
|
| sorting data on list pages, date
validation |

|
2006-09-28 12:06:51 |
HI,
i have a few questions.
1. In my app, i have a list view where several fields are
represented in
tables. Now i want the user to be able to click the
columnheader in
order to sort the data.
I have javascript code that displays a + or - wether
(toggling between
the 2) and i made 2 views, 1 for ascending & descending
sorting of the
columns and these views work independently.
But when i call the links from my javascript it doesn't seem
to work.
Are their other more elegant ways of dealing with sorting of
data?
2. I use the dd/mm/yyyy date format. I created my own
Validators
(without specifying the fields) and it all works. Before the
data is
shown, i change the date from JJJJ-MM-DD to dd/mm/yyyy.
But then off course the validators doesn't work correctly.
Only way i can solve this it seems is to specify a fields
list and add
a custom date validator for my date field.
But i don't want to specify the fields (is there a way to
have that list
generated?).
Can i override just the date field in a way or maybe just
substitute the
date validator without having to go through the creation of
the fields?
Thanks,
Benedict
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|
|
| sorting data on list pages, date
validation |

|
2006-09-28 12:18:42 |
|
Hi use a javascript widget from softcomplex.com that will recevie data for upto 3000 rows, and allow you to sort and filter on the client side. Its quite amazing.
If you have a large amount of data/clients you dont want to be fetching data continuously. http://www.softcomplex.com/products/tigra_tables_pro/
features:
- Data in the table can be sorted by any column in either ascending or descending order
- Table data can be filtered by exact match, substring or regular expression found in the specified column
- Table data can be broken down by pages of specified size with all the required navigation automatically created
- Flexible arrangement of table elements (NEW)
- Table row click events handling is available
- Key field can be specified and then passed to row click event handler
- Column cells can be formatted conditionally
- Hiddable table fields - useful if a field is key but should not be displayed (NEW)
- Alternating rows colors, onmouseover row effect and easy row (un)marking with mouse click (UPDATED)
- Every aspect of the table look is configurable with the CSS in familiar for web developers way (UPDATED)
- Each column has its own settings for data type, caption etc.
- Table can be initially sorted (NEW)
- String, number, date and currency values are internally supported (UPDATED)
- Custom data types can be plugged in with correct sorting algorithms (UPDATED)
- Data definition format is compact and easily generated with server side script
- Unlimited number of tables on single page, each independently configurable
- Extremely fast sorting algorithm using indexes is applied (NEW)
- Size optimized to reduce network load
- All popular browsers supported
- Highly optimized algorithms offer good results on large data sets (UPDATED)
- Script takes maximum results from capabilities of the browser used
- External API for data control (NEW)
- Free setup support
- Free updates and discounts for other products
- Plus date processing add-on module: any input and output date formats are supported now (NEW)
i highly recomend it
----- Original Message ---- From: Benedict Verheyen <benedict.verheyen sjki.be> To: django-users googlegroups.com Sent: Thursday, September 28, 2006 1:06:51 PM Subject: sorting data on list pages, date validation
HI, i have a few questions.
1. In my app, i have a list view where several fields are represented in tables. Now i want the user to be able to click the columnheader in order to sort the data. I have javascript code that displays a + or - wether (toggling between the 2) and i made 2 views, 1 for ascending & descending sorting of the columns and these views work independently. But when i call the links from my javascript it doesn't seem to work.
Are their other more elegant ways of dealing with sorting of data?
2. I use the dd/mm/yyyy date format. I created my
own Validators (without specifying the fields) and it all works. Before the data is shown, i change the date from JJJJ-MM-DD to dd/mm/yyyy. But then off course the validators doesn't work correctly.
Only way i can solve this it seems is to specify a fields list and add a custom date validator for my date field. But i don't want to specify the fields (is there a way to have that list generated?). Can i override just the date field in a way or maybe just substitute the date validator without having to go through the creation of the fields?
Thanks, Benedict
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users googlegroups.com To unsubscribe from this group, send email to django-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---
|
| sorting data on list pages, date
validation |

|
2006-09-28 12:27:59 |
|
|
Hi,
i will have a look at it but for my app it's overkill
as there isn't so much data that fetching it over and
over again would be a problem.
Regards,
Benedict
P.S. Sorry for sending the mails 3 times. At work we
use exchange and it said it couldn't send the
message (can't connect to the server) so i tried from
gmail after my 2 attempts only to find out it
did send out on the first 2 tries.
*sigh*
Hi
use a javascript widget from softcomplex.com that will recevie data for upto
3000 rows, and allow you to sort and filter on the client side. Its quite
amazing.
If you have a large amount of data/clients you dont want to be
fetching data continuously. http://www.softcomplex.com/products/tigra_tables_pro/
features:
- Data in the table can be sorted by any column in either ascending or
descending order
- Table data can be filtered by exact match, substring or regular expression
found in the specified column
- Table data can be broken down by pages of specified size with all the
required navigation automatically created
- Flexible arrangement of table elements (NEW)
- Table row click events handling is available
- Key field can be specified and then passed to row click event handler
- Column cells can be formatted conditionally
- Hiddable table fields - useful if a field is key but should not be
displayed (NEW)
- Alternating rows colors, onmouseover row effect and easy row (un)marking
with mouse click (UPDATED)
- Every aspect of the table look is configurable with the CSS in familiar
for web developers way (UPDATED)
- Each column has its own settings for data type, caption etc.
- Table can be initially sorted (NEW)
- String, number, date and currency values are internally supported (UPDATED)
- Custom data types can be plugged in with correct sorting algorithms (UPDATED)
- Data definition format is compact and easily generated with server side
script
- Unlimited number of tables on single page, each independently configurable
- Extremely fast sorting algorithm using indexes is applied (NEW)
- Size optimized to reduce network load
- All popular browsers supported
- Highly optimized algorithms offer good results on large data sets (UPDATED)
- Script takes maximum results from capabilities of the browser used
- External API for data control (NEW)
- Free setup support
- Free updates and discounts for other products
- Plus date processing add-on module: any
input and output date formats are supported now (NEW)
i highly recomend it
-----
Original Message ---- From: Benedict Verheyen
<benedict.verheyen sjki.be> To: django-users googlegroups.com Sent:
Thursday, September 28, 2006 1:06:51 PM Subject: sorting data on list pages,
date validation
HI, i have a few questions.
1. In my app, i have a
list view where several fields are represented in tables. Now i want the user
to be able to click the columnheader in order to sort the data. I have
javascript code that displays a + or - wether (toggling between the 2) and i
made 2 views, 1 for ascending & descending sorting of the columns and
these views work independently. But when i call the links from my javascript
it doesn't seem to work.
Are their other more elegant ways of dealing
with sorting of data?
2. I use the dd/mm/yyyy date format. I created my
own Validators (without specifying the fields) and it all works. Before the
data is shown, i change the date from JJJJ-MM-DD to dd/mm/yyyy. But then
off course the validators doesn't work correctly.
Only way i can solve
this it seems is to specify a fields list and add a custom date validator for
my date field. But i don't want to specify the fields (is there a way to have
that list generated?). Can i override just the date field in a way or
maybe just substitute the date validator without having to go through the
creation of the
fields?
Thanks, Benedict
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users googlegroups.com To unsubscribe from this group, send email to django-users-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---
|
[1-3]
|
|