Comments

HTML Table Filter Generator is no longer maintained, it is now replaced by the TableFilter project. Don't hesitate to check the demos out in their new location along with exhaustive documentation in the project's WIKI.

Comments closed

As some of you may know, I have been providing free support for this code since 2006 and I have been doing it with great pleasure for all this time. I always tried to reply to every question and keep the open source spirit alive. I think many developers appreciated it as they freely contributed to improve this code with amazing features and ideas. I would like to thank all those who supported this project with donations and with development efforts!
Don't take me wrong, this project will continue to evolve as there is always room for improvements and new features and will remain under an open source license ;-)
I simply have less and less time to dedicate to free support, therefore, from now on, you can contact me via the Premium Support Request form.

Thanks for your understanding,
Max

 

1 . 2013-11-12 09:47:25

Mattew wrote:

Hi, thanks for your great work, it's a real pleasur to work with this TableFilter, and the documentation it's realy nice !

 

But ... Always a but :)

 

I have som problem with the filter_row_index, in some case it's works, 0 or 1 change the position of the grid, but in some case it don't work at all ... I tried to do the exact same thing but i can't understant why it's does nothing.

My table is the same and my properties of variable config = {} is the same.

If you can help me it will be very cool, thanks you au lot for your time and you work,

Mattew

Email : mathieu DOT bouttaz AT adn-informatique DOT com


2 Replies

1 . 2013-11-17 02:49:01

Max wrote:

Hi Mathieu,
Make sure you are using filters_row_index and not filter_row_index...

Email :


2 . 2013-11-12 14:42:24

Mattew wrote:

wrong email, bouttaz@adn-informatique.com

Email : bouttaz AT adn-informatique DOT com


Top of page

2 . 2013-10-18 15:14:16

Anders wrote:

Hi

Thanks for a great tool. It was just what I was looking for.

However, I have a problem with properties not working for me. Im implementing the TableFilter using the following code:

<script type=\"text/javascript\" language=\"javascript\" src=\"/js/TableFilter/tablefilter.js\"></script>

<table align='center' border='1' id='table1' class='mytable filterable'>

and that works. But when I try to add properties, nothing happens. Im following the documentation and examples, but I just cant find the problem.


Hope you can help, and thanks!

 

Email : asw AT waoo DOT dk


1 Reply

1 . 2013-10-20 08:48:03

Max wrote:

Hi,
It looks like you have decided to instantiate the filters by using the filterable css class. If you stick with this then your configuration object must be called tf_tableid, in your case tf_table1:
...
var tf_table1 = {
   btn_reset: true,
   ...
};
...

Cheers

Email :


Top of page

3 . 2013-10-08 17:22:49

Henrique wrote:

Hi,How use the filter operators? For example, I have a field and I want to enter a value and that the results show higher values ​​that I typed!

Email : rickrockandroid AT gmail DOT com


0 Reply

Top of page

4 . 2013-09-29 18:54:03

Barry wrote:

I am still having a problem getting the TableFilter code to take effect.  I think I am following the steps needed, but my table does not change.  I do not know exactly where to put the code?  I have the script line in my Head tag....  I am generating a table in a php file and returning it to an HTML box on my page.  I am echoing out the table html code in the php file.  How do i get the Filter code to change this table?  I am lost.  I got the EzeditTable code to change my tables by using the class parameter in the table.  I just do not know where to put the code!!!!!  I want to get the cool sorting and filtering i see the script can do!

Email : goodman441 AT aol DOT com


1 Reply

1 . 2013-10-01 23:00:32

Max wrote:

Hi Barry,
First you need to place the ezEditTable folder inside the TableFilter directory alongside TF_Modules folder etc.
Then follow the installation instructions detailed in this page: http://tablefilter.free.fr/index.php#implement.
Finally have a look to the examples page: http://tablefilter.free.fr/ex.php , especially example #12 and the demos combining the both scripts: http://tablefilter.free.fr/demos.php?0=ezEditTable
If you need more help, do not hesitate to place a Premium Support request.
Cheers

Email :


Top of page

5 . 2013-09-24 16:46:17

Ben wrote:

Hi there, I'm trying to sort multiple table on the page, but for some reason sorting is only ever applied to the second table!! Filtering always works on all tables, but sorting only ever works on 1 table.

 

I've put an example up to show this problem: http://arrayx.co.uk/TF/example.html

 

I've checked the code over and over, I can't see any problems with it, and I can't find any examples in the demos section that sort on multiple tables on the same page.

 

Any help would be much appreciated :)

Thanks, Ben

Email : ben AT arrayx DOT co DOT uk


2 Replies

1 . 2013-09-27 10:44:54

Ben wrote:

Hi Max, yes that worked!! Crazy, I'd already seen that those files were automatically imported, I never would have imagined that including them explicitly would help!

Thanks, Ben

Email :


2 . 2013-09-26 00:49:01

Max wrote:

Hi Ben,
try to import those scripts in your page:

<script type="text/javascript" src="http://centos.setupfiles.pwp1.com/utilities/TableFilter25/sortabletable.js">
</script>
<script type="text/javascript" src="http://centos.setupfiles.pwp1.com/utilities/TableFilter25/tfAdapter.sortabletable.js"></script>

Those files are imported dynamically by the script, but if they are already there it's even better.
Tell me how it goes.

Cheers

Email :


Top of page

6 . 2013-09-18 16:31:59

Loly wrote:

Hello,

I have a question. How to sum rows when pagination in enabled? I have 800 rows, and when I set maxpagesize to 100 i get sum only from page 1 not from all 8 pages.

 

Best,

L.

Email : lixir AT o2 DOT pl


1 Reply

1 . 2013-09-26 00:55:10

Max wrote:

Hi,
Have a look to those demos:
http://tablefilter.free.fr/demos.php?1=col_operation
I don't think there is an easy way to sum-up the rows of all other pages when pagination is on.
If you wish you can place a Support Request for implementing it.
Cheers

Email :


Top of page

7 . 2013-09-09 12:17:22

costal wrote:

hi Max & all,

is there perhaps a way to hide the content until the filter is used?
i haven't found an option for this...

many thanks and best reagrds
costal

Email : costal AT martinier DOT net


0 Reply

Top of page

8 . 2013-08-30 00:21:16

Christian wrote:

Hi Max,

Thanks for helping me out on my other question, I appreciate it! I have a specific question about the range issue I had earlier. The way my table is (you can check it here), for "Output Voltage" and "Current" I have ranges for these values. But when you search a number, it will only find the numeric digit in the value. I tried out the custom_cell vars but i cant find a way to set custom ranges for each value.

I also played around with the custom_slc_options, but when I made the range values, when I clicked for instance '0-100' (<100), it ignores the ranges in the values so things like '18-36' won't show up. Is there a way to make custom values for each range in the table? if not, is there any other way to achieve this? Thanks and I appreciate all the support you give!

Email : cchung AT eptronics DOT com


1 Reply

1 . 2013-09-02 05:42:02

Max wrote:

Hi Christian,
I think there is a way of doing that by using the custom_cell_data delegate implementing custom logic for that. If you wish you can drop me a Support Request for further assistance.
Cheers

Email :


Top of page

9 . 2013-08-27 16:26:28

Michail wrote:

Goodday,

is there a possibility to combine ajax json request with paging to use in tablefilter? would reduce data to select from data base. example with json is getting all data first not on load.

anyone done so?

thank you,
Michail

Email :


0 Reply

Top of page

10 . 2013-08-23 15:14:37

Speedup visualization in IE??? wrote:

Hey,

yes I know that IE is a piece of crap (all versions 6,7,8,9,10,11) but does anyone know a method to speed up the
visualization of a big table in IE?

I have about 2000 lines with 26 colums and it takes about 30 seconds to generate the gridview in IE11.

In Firefox23 it takes 8 seconds ...

perhaps a parameter like "withspeed=yes" or "quickjs=1" ???

 

damn, I hate this IE... IE is no browser, it´s a scream ;)

Email :


1 Reply

1 . 2013-08-26 01:15:12

Max wrote:

Hi there,
Have a look at the suggestions listed in this demo:
http://tablefilter.free.fr/extra-large-data.htm

Loading the filters at first use (2nd bullet point in the suggestions) could be useful in your case, below some demos implementing it:
http://tablefilter.free.fr/demos.php?1=fill_slc_on_demand

Cheers

Email :


Top of page

11 . 2013-08-22 11:02:33

MarcD wrote:

Hello, it´s me again ;)

I get a strange visualization error in grid view where header columns and "value" colums below are not in line.
In my grid are 25 colums which should be scrollable. This works but size of header and fields below does not fit.
Seems so that header columns have more width than columns below them.

col_width and grid_Default_col_width cannot solve this error, they just make the columns more wide, but the visualization error
stays the same.

anyone with an idea?

Thankyou in advance.

Email : marc DOT deml AT gmx DOT net


2 Replies

1 . 2013-08-26 01:09:07

Max wrote:

Nice well done!

Email :


2 . 2013-08-23 08:58:02

MarcD wrote:

problem solved!  seems so that this happens when something with the css fails.

I checked and ordered all my styles and css formating and now it works :) very nice.

 

bye,
MarcD

Email : marc DOT deml AT gmx DOT net


Top of page

12 . 2013-08-20 01:46:31

Christian wrote:

Hi there,

Great script first of all! I was using an old version of the script (1.5 i think?) and depending on what values you had first in your table it would automatically make them first in the selection box. In the new version, they are set alphabetically now automatically and you have no control over what items you want to show first in the selection box. Is there any way to revert it back to the old style so I can have certain options first ahead of others? thanks!

Email : christianhchung AT gmail DOT com


2 Replies

1 . 2013-08-23 09:12:22

Max wrote:

Thanks Christian,
You can disable the drop-down filters sorting with the sort_select property in the configuration object:
http://tablefilter.free.fr/doc.php#grid_drops

Try to have a look to the custom_cell_data delegate function to use your custom logic to filter your ranges:
http://tablefilter.free.fr/custom-data.htm

or use the operators described here:
http://tablefilter.free.fr#operators

Cheers

Email :


2 . 2013-08-20 01:55:19

Christian wrote:

One more question,

If I have a value that is a range of #s, like "24-40", is there any way that searching "30" will have this range come up? Right now, it will only come up if you search either 24 or 40.

And if it is not possible with this script, could I combine another script to make this work?

 

Thanks!!

Email : christianhchung AT gmail DOT com


Top of page

13 . 2013-08-19 18:10:12

Josh wrote:

This is an awesome product, and in an instant has made my life tons easier.

Question: Has anybody tried using this with SharePoint list views?  I envision trying this at some point, but seeing how they don't quite behave as HTML tables do, I'm not sure how successful I will be.  I was hoping somebody might have already traveled this road.

Thanks!

 

Email : jloomis AT whi DOT org


1 Reply

1 . 2013-08-23 09:02:17

Max wrote:

Thanks Josh,
If the .Net list views controls in SharePoint generate a HTML table, then there shouldn't be any major issue. You will have to make sure the client-side table filter object is instantiated once the HTML table is generated in the DOM. If you use UpdatePanels then you will also have to make sure the filter object is instantiated every time the panel is refreshed.

Email :


Top of page

14 . 2013-08-08 09:36:28

Fixed headers do not work in Firefox wrote:

hello,

does anyone have a solution for not-working "fixed headers" in firefox  (FF23) ?

In IE10 it works in "compatibility mode" only.

Any idea?

thankyou in advance.

bye, MarcD

Email : marc DOT deml AT gmx DOT net


1 Reply

1 . 2013-08-10 09:11:38

Max wrote:

Hi,

The fixed_headers property is deprecated, you better use the grid_layout mode instead. This will ensure better browser support.

Cheers

Email :


Top of page

15 . 2013-08-01 09:05:41

MarcD wrote:

well, perhaps I didn´t find it and it already exists...

is it possible to "lock" the first (or more) column an scroll the other content of the table at tables with high width?

I would need this feature because my table (with all columns, unfiltered) has now about 60 columns width.
Sure, I already can hide/unhide colums but this feature of locking first column would help the user to "read" my table...

Thankyou in advance.

 

bye,
MarcD

Email : marc DOT deml AT gmx DOT net


2 Replies

1 . 2013-08-02 13:43:00

MarcD wrote:

too bad, would be so nice if first 1-x columns would stay fix and the rest would be scrollable...

but well, thanx for the answer! :)

Email : marc DOT deml AT gmx DOT net


2 . 2013-08-02 07:07:34

Max wrote:

Hi MarcD,
The feature you refer to, does not exist yet. You may achieve that with some CSS tricks but I confirm it is not a script's feature.
Cheers

Email :


Top of page

16 . 2013-07-24 10:08:46

forestgreen wrote:

Thanks once more again for maintaining this very useful toolkit!
One more question I have: in my table I defined a column for which I have defined a properly working drop-down select filter (with approx. 12 entries). Is there a way to make it also possible that users not only can pick an item from the drop-down list and filter for this but also filter for the item's negation? (i.e. show me all rows which do not match the filter criterion)

Thx a lot and may the lord bless you for the valuable work you have with this software.

Email : cdg DOT forestgreen AT gmail DOT com


1 Reply

1 . 2013-07-25 01:13:00

Max wrote:

Hi forestgreen,
There is a property called search_type that used to do what you are describing, but I am not sure it still works as it has been deprecated when the filter 'operators' were introduced. Try to play with the search_type property in your configuration object and see if it works:
...
search_type: 'exclude',
...

Cheers

Email :


Top of page

17 . 2013-06-14 00:18:06

Arnaud wrote:

Hello,

I would like to tell you the possible improvement I would like to your very useful JavaScript:

Make the title of the column clickable and create a event to sort the data alphabetically: from A to Z and when we click again, from Z to A. Example: http://tablesorter.com/docs/#Demo 

Thanks

Email : arnaud DOT v DOT hebert AT gmail DOT com


1 Reply

1 . 2013-06-14 09:56:46

Max wrote:

Hi Arnaud,
Please check these demos out:
http://tablefilter.free.fr/demos.php?1=sort

Cheers

Email :


Top of page

18 . 2013-06-04 11:56:20

macipapa wrote:

Hi

 

I'm using the table filter, and I would like to make some rows "expandable" , so show or hide  rows via a click .

 

My table contains a number of "subtables", and I wanted to show them, only if requested.

Email :


2 Replies

1 . 2013-06-26 01:43:53

Olivier wrote:

Hello, I don't know if that will be usefull to you macipapa,
The filters work if for example you have rows in the middel of the table defined with colspan="6" in the case you have 6 cols in the table that you want to show with a click with js for exemple. Well the filters work... I'd like to show you an image but I don't know where to host it.

 

 


Email : oliviercartagena AT yahoo DOT com


2 . 2013-06-07 09:49:47

Max wrote:

Hi macipapa,
The script does not support expandable rows.
If you want you can place a Support request for this specific development.

Email :


Top of page

19 . 2013-05-30 03:32:42

Dadan wrote:

Hi..

first of all, i want to say thank you very much. you make me like a pro eventhough i'm newbie with this stuff.

i want to know how to change column width manually, so i can put a number to column properties width.

And pls explain step by step couse i'm newbie here.

thanks.

Email : tungtungtseng AT mail DOT com


1 Reply

1 . 2013-06-05 01:23:15

Max wrote:

Thanks Dadan. Please follow the installation instructions and also check these examples out:
http://tablefilter.free.fr/ex.php.
Cheers

Email :


Top of page

20 . 2013-05-24 12:25:32

Joan wrote:

Hi Max,

First, I want to congratulate you for this excellent library.

I want to know if I can group rows by pairs, i.e, filters are ony applied to odd rows (1, 3, 5, ...), if a row satisfies the filter, it and it's even row are visible and if it doesn't satisfy the filter, it and it's even row are hidden. For example, if row 1 doesn't satisfy the filter, rows 1 and 2 are hidden.

 

Thank you.

 

PD: Sorry for my English

Email :


1 Reply

1 . 2013-05-25 02:29:26

Max wrote:

Hi Joan,
You could use the custom_cell_data delegate function in order to use your own rules for the filtering process. The script will use the custom_cell_data function instead of its own Filter() function to filter the specified columns. Check these demos out to see it in action:
http://tablefilter.free.fr/demos.php?1=custom_cell_data

Cheers

Email :


Top of page

21 . 2013-05-21 18:09:06

Todd Smith wrote:

Hi Max,

First, I want to say your table filter generator has a lot of nice features. Great job in putting out this fine work. I've been trying out various features first time the last couple weeks and have a couple questions.

There is a paging property, paging_target_id, that helps position the page navigation buttons to your own div. I been using it to position bottom of my sample tables. Is there a similar way to control the other paging elements such as Row Counter and Results Per Page?  I would like to position them too below the table.

Currently using left_div_css_class (Row Counter) and right_div_css_class (Results Per Page and Clear) with some success which limits to top of table. Also, I found the right div elements default to left side on next line below Row Counter. By setting text-align:right, I'm able to get elements on right side but 2nd line down. When I change margin up a line, then I'm able to get Row Counter aligned in same line with right elements. Is there some other property that can help? Using tablefilter.js version 2.5.

Note: I found the inf_div_css_class doesn't yet affect the page navigation buttons.

Thanks for your help.  -Todd

Email :


1 Reply

1 . 2013-05-22 01:27:22

Max wrote:

Hi Todd,
First of all thanks a lot for your donation!
I will try to answer all your questions:

  1. For the rows counter there is a rows_counter_target_id option and for the results per page a results_per_page_target_id. Alternatevely you can position the whole toolbar in desired element with toolbar_target_id
  2. I am not sure this will answer your question. Basically instead of using the default CSS definitions (and/or edit the filtergrid stylesheet) you can define your own CSS classes for the toolbar elements with a bunch of properties: inf_div_css_class, left_div_css_class, right_div_css_class, middle_div_css_class. By combining the 'target_id' options and your own CSS definitions you should be able to re-arrange the tools in a desired manner.
  3. Similarly, you can define your styles for the paging elements: paging_slc_css_class, results_slc_css_class, results_span_css_class, paging_btn_css_class, nb_pages_css_class

Let me know if this helps.
Cheers

Email :


Top of page

22 . 2013-05-11 01:09:58

Set focus in filter wrote:

Tablefilter is great. Thank you.

Is it possible to set the focus inside the input box produced by the following code? As will be seen, I've tried to use jquery but this doesn't produce a result as yet.

    <script language="javascript" type="text/javascript">
    var table_Props = {
                on_keyup: true,
                on_keyup_delay: 500,
                single_search_filter: true,
                status: true            };
    var tableref = new TF("idVidSeries", table_Props); 
    tableref .prfxTf = "";
    tableref .Init();
    $('#flt0_idVidSeries').focus();

</script>

Thanks again

Jim Brook

Massey High School

Auckland New Zealand

Email : jbrook AT clear DOT net DOT nz


2 Replies

1 . 2013-06-25 11:08:23

Thank you wrote:

It works perfectly and adds significant elegance to the interface.

 

Email : jbrook AT clear DOT net DOT nz


2 . 2013-05-12 03:18:20

Max wrote:

Thanks Jim. The filter element may not be yet available in the DOM at the time you set the focus, that's why nothing happens. Use instead the the on_filters_loaded event which is fired just after the filters are generated in the DOM to ensure that the filter exists. Add the following lines to your configuration object:
...
status: true,
on_filters_loaded: function(o) {
   o.GetFilterElement(0).focus();
}
...
The script's API provides a method that returns the filter element of a specified column, GetFilterElement(colIndex), no need to figure out what is the id of that particular filter.

Email :


Top of page

23 . 2013-04-15 18:49:03

Olivier Cartagena wrote:

Hello Max,

I have sometimes this error:

Bad Request

Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.

Cookie

/n


Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.27 with Suhosin-Patch Server at localhost Port 80

To solve this error I have to delete the cookies
Is it normal to have this error and is there a way to fix it?

Email : olivier AT pukanina DOT com


1 Reply

1 . 2013-04-16 01:08:30

Max wrote:

Hi Olivier,
This script does not make requests, unless your are doing some AJAX calls to load a table or using the ezEditTable add-on, but indeed it sets cookies. Please tell me more about the context, when this happens exactly etc.
Please submit a Support Request .
Cheers

Email :


Top of page

24 . 2013-04-10 13:43:34

R.T.Raj wrote:

Please help me.. i am using this table filter and column visibility in Mac and Firefox.. i am not able to show the columns back after hiding as it it not resizing to its size....please advise.. i need this very urgently...

Email : thanapalraj AT gmail DOT com


1 Reply

1 . 2013-04-12 00:54:22

Max wrote:

Hi,
I don't have enough information to understand what's wrong. Please send me a Support Request.

Cheers

Email :


Top of page

25 . 2013-04-10 11:01:39

piepiax wrote:

Hi Max,

I have a question about the extension manager process.

I have several tables which load the columns visibility js via the extension manager

<code>

extensions: {  

            /*** Columns Visibility alone extension load ***/  

            name:['ColsVisibility'],  
            src:['js/TFExt_ColsVisibility.js'],  
            description:['Columns Visibility'],  
            initialize:[function(o){o.SetColsVisibility();}]  
        },

</code>

And it seems that the TFExt_ColsVisibility.js is loaded by the browser for each table.

Is it normal ? And is there an issue to load the js only 1 time (in the HEAD) via the src parameter for performance/memory purpose ? of course only if this can have an impact !

Thanks

Email : piepiax at free dor fr


2 Replies

1 . 2013-04-11 10:11:04

piepiax wrote:

Hi MAx,

 

Thanks for your answer. I will check that

Piepiax

Email :


2 . 2013-04-11 01:18:00

Max wrote:

Hi Piepax,
The script is meant to add the <script> element importing the extension only once in the <head> section of the document. The function importing dynamically the script may be called again by each table but the script should detect if it is already imported or not. In any case, it is harmless to use the <script> element. Actually  the extension demo imports it in this way and the script should detect that is already loaded:
http://tablefilter.free.fr/cols-manager.htm

Cheers,
Max

Email :


Top of page

26 . 2013-03-19 04:46:25

Olivier Cartagena wrote:

Hi,

I'm trying to install this fantastic component HTML Filter Table but I have some problems.
I have create a folder named TableFilter to the root of my server and placed all the files and folders that I have extract.

I tried to make it work but something's wrong:

When my mysql table is empty the displayed rows at the beginning of the html table are... -2... but none exists

When I create 2 entries, the displayed rows are 0, but 2 rows exist and are listed, but none on the <select>, so it's not possible de filter...
Now I have 3 entries in my mysql table, so 3 are listed in the html table, but only the last one is listed in the <select> and when I filter by this entry, there is no filtering... the 3 are still listed in the table...

I don't understand

Any idea?

Email : olivier AT pukanina DOT com


2 Replies

1 . 2013-03-20 05:39:52

Olivier Cartagena wrote:

Hi Max,

That's it! It's working now... wonderfull.

Thanks a lot, really

Olivier

Email : olivier AT pukanina DOT com


2 . 2013-03-19 08:09:39

Max wrote:

Hi Olivier,
Make sure the setFilterGrid call is supplied with the correct numeric value determining the start row for the filtering process:
...
var tf = setFilterGrid('tableId', 2, { ... });

Try to remove it and then make tests with 1 and 2.

Email :


Top of page

27 . 2013-03-18 06:19:42

Daniel wrote:

Is there any way to be able to get a date range as a filter like from April 1, 2012 to April 30, 2012?

Email : danielleinad AT yahoo DOT com


1 Reply

1 . 2013-03-18 23:54:59

Max wrote:

Yes, there is a way. For example, in this demo:
http://tablefilter.free.fr/data-types.htm
insert the following values in the ISO Date column of the 2nd table:
>95-1-1 && <97-1-1

Email :


Top of page

28 . 2013-03-12 22:07:44

Dominic wrote:

Hi Max,

Thank you for building this and providing it to all of us. 

I am running into a problem. I am creating a table via PHP from a SQLite database. When the data is filtered the row count states some number of rows: n.  However, when I count the rows manually there are n + 2 rows and the last two rows in the table do not match the filter criteria and should not be visible. Have you run into this before or have any ideas on what I could be missing?

 

I am attaching the code I am using to generate the filters. The first column is not supposed to be a filterable column but every other column should be. I was also wondering if I needed to include the blank sort_type for that column?

 

I am attaching the code I am using to generate the filters:

 

<script language="javascript" type="text/javascript">

        var props = {

            sort: true,

            sort_config: {  

                sort_types:['','String','String','mdydate','String','String','mdydate','String','String','String','String','String']  

                 },  

            filters_row_index: 1,

            remember_grid_values: true,

            alternate_rows: true,

            rows_counter: true,

            rows_counter_text: "Displayed rows: ",

            btn_reset: true,

            btn_reset_text: "Clear",

            loader: true,

            load ...

Email : dooms13 AT gmail DOT com


3 Replies

1 . 2013-03-14 21:30:11

Dominic wrote:

I think I figured out the problem. Along with not using a row index I had been using a javascript plug-in for stickyheaders for my table so the headers would float with the scrolling window. Once I removed those sticky headers the filtering and sorting worked great.

Email :


2 . 2013-03-14 20:45:13

Dominic wrote:

Thanks for the reply Max. Here is the rest of the code.

 

loader: true,

            loader_html: '<img src="./img/loading.gif" style="vertical-align:middle; margin:0 5px 0 5px">' +

                    '<span>Loading...</span>',

            loader_css_class: 'myLoader', 

            status_bar: true,

            mark_active_columns: true,

            on_keyup: true,

            on_keyup_delay: 500,

            col_0: "none",

            col_4: "select",

            col_5: "select",

            col_7: "select",

            col_8: "select",

            col_9: "select",

            col_11: "select",

            display_all_text: "< Show all >"

 

        };

        var tf = setFilterGrid("datatable1", props);

    </script>

Email :


3 . 2013-03-12 23:28:14

Max wrote:

Hi Dominic,
Yes I have already seen this before and there could be a variety of causes, such as rows with different number of cells, rows outside the tbody or wrong row index passed to the setFilterGrid function (setFilterGrid('myTableId', 3, configObj)).
Please post the rest of the configuration object just in case I see something unusual.

Email :


Top of page

29 . 2013-03-05 11:59:52

Marion wrote:

Hi,

I was wondering is the custom_slc_options property only used once per filter? If no how can it be used the second time around because I tried using it twice and the second custom_slc_options property is ignored?

Email : frutosboi AT hotmail DOT com


1 Reply

1 . 2013-03-07 04:00:32

Max wrote:

Hi Marion,

Please use the custom_slc_options property only once, as per code below:
var myConfig = {
...
custom_slc_options: { 
  cols:[0, 1, 2],  // columns indexes
  texts: [
   ['text0_col0','text1_col0','text1_col0'],
   ['text0_col1','text1_col1','text1_col1'],
   ['text0_col2','text1_col2','text1_col2']
  ], 
 values: [ 
    ['value0_col0','value1_col0','value1_col0'],
   ['value0_col1','value1_col1','value1_col1'],
    ['value0_col2','value1_col2','value1_col2']
 ], 
  sorts: [false, false, false] 
},
...
};

Also have a look to the following demos:
http://tablefilter.free.fr/demos.php?1=custom_slc_options
and documentation:
http://tablefilter.free.fr/doc.php#grid_drops

Cheers,
Max

Email :


Top of page

30 . 2013-02-03 18:42:38

Kaneo wrote:

I have followed all the instructions to add the Sortable Table extension to this amazing script, but it does not work. The normal Table Filter works fine - just not the sortable extension. Its almost as if it doesn't exist.

I have a table with a thead section and a tbody section. I added these lines to my header:
<script src="/scripts/tablefilter/sortabletable.js"></script>
<script src="/scripts/tablefilter/tfAdapter.sortabletable.js"></script>

I have checked the scripts exist in that location and they do.

I have then adjusted my configuration script to this:
var myTableFilters = 

        filters_row_index: 1,
        mark_active_columns: true,
        sort: true,
        sort_config: {
        async_sort:true,
        sort_types:['Number', 'None', 'String', 'String', 'dmydate'] 
    }

}

It simply will not do anything on the page. Can anyone help me please?

Email : fishymoo AT yahoo DOT com


4 Replies

1 . 2013-06-11 09:12:13

Gabriel Anzziani wrote:

I was having some trouble with the sortable portion of the table as well. A visitor to my site noticed and sent me this fix:

 

Premium support Premium support

E.n.j.o.y.  ads-free content!