filtering table with "server side pagination" ON 11 Years, 6 Months ago
|
Karma: 0
|
Hello,
I'm successfully using ARI Data Tables module with context filter.
Now the table has grown that big, that the "server side pagination" became necessary. But when it's turned "Yes", filtering stopped to work. Always gives "No matching records found". Column sorting stops to work too.
Do I do something wrong? How to get the filter working with server side pagination? Thank you.
|
|
|
Last Edit: 2013/05/21 08:41 By primarta.
|
|
Re:filtering table with "server side pagination" ON 11 Years, 6 Months ago
|
Karma: 760
|
Hello,
What SQL query do you use? It can be not compatible with "Server side pagination".
Regards,
ARI Soft
|
|
|
|
|
Re:filtering table with "server side pagination" ON 11 Years, 6 Months ago
|
Karma: 0
|
SELECT
`userid`,
CONCAT ('<img style="height:16px;width=16px;" src="media/com_ars/icons/',IF(`block`=0,'ok_small.png','locked_16.png'),'"/>') AS "state"
,CONCAT ('<img style="height:32px;width=32px;" src=".../assets/images/avatars/',IF (`avatar`='','_grey.gif',`avatar`) ,'"/>') AS "Avatar",
CONCAT('<a href="index.php?option=...',`userid`,'&lang=en">',`name`,"</a>") AS "Name",
CONCAT('<a href="mailto:',`email`,'">',`email`,'</a>') AS email,
`phonemobile` ,`city` AS "City",
FROM #__table1 t1 LEFT JOIN #__table2 t2 ON t1.`id`=t2.`userid` WHERE NOT `username` IN('admin') AND `published`=1 ORDER BY `userid` ASC
Thank you in advance for your comments.
|
|
|
Last Edit: 2013/05/21 14:45 By primarta.
|
|
Re:filtering table with "server side pagination" ON 11 Years, 6 Months ago
|
Karma: 760
|
"Server side pagination" doesn't work with "virtual" fields (like "state", "Avatar").
Regards,
ARI Soft
|
|
|
|
|
Re:filtering table with "server side pagination" ON 11 Years, 6 Months ago
|
Karma: 0
|
Thank you. Actually, it works OK except filtering. Means, it loads only the "visible" page, then you can walk on page by page.
But the filtering is a must) I need to be able to filter two or three fields of those ten; is there a way to set individual fields filters with "server side pagination" on? Thanks.
|
|
|
|
|
Re:filtering table with "server side pagination" ON 11 Years, 6 Months ago
|
Karma: 760
|
The extension doesn't support this ability when "virtual" fields are used in "SELECT" SQL query.
Regards,
ARI Soft
|
|
|
|
|
|