Once we will change no of rows per page means 10 to 25, then can it be remain same in all the tables? Or on other way Can I set the changed no of rows per page variable global for all tables in whole site?
My problem is to set no. of rows per page once we set to one table, that would reflect in all tables.
For example: The default no. of rows per page is 10. So the select box on top of the table Show 10 entries. So if we change it to 10 to 50, then if we access other tables, i could able to see 50 rows in other tables too. I dont need to change everytime in all table's no. of rows per page 10 to 50. So this is one kind of facility which we provide to users. Some user want 10 rows, some like 50 rows etc.
Ah I see - so the change after the tables have been initialised would effect all other tables.
Currently there isn't a plug-in method or a plug-in already written to do this, but it is easily possible using the API. There is a plug-in that already does this for filtering, and you could use that as a basis for doing the same thing with length change: http://datatables.net/plug-ins/api#fnFilterAll .
In fnLengthChange() function, how to get the value 100? How to send the value 100 to all other pages so that we can see no of record as 100 in other pages?
Replies
Allan
Allan
My problem is to set no. of rows per page once we set to one table, that would reflect in all tables.
For example: The default no. of rows per page is 10. So the select box on top of the table Show 10 entries. So if we change it to 10 to 50, then if we access other tables, i could able to see 50 rows in other tables too. I dont need to change everytime in all table's no. of rows per page 10 to 50. So this is one kind of facility which we provide to users. Some user want 10 rows, some like 50 rows etc.
Is it possible to do this in our tables?
Currently there isn't a plug-in method or a plug-in already written to do this, but it is easily possible using the API. There is a plug-in that already does this for filtering, and you could use that as a basis for doing the same thing with length change: http://datatables.net/plug-ins/api#fnFilterAll .
Allan