Sigma Php Ajax framework, Ajax Components, GUI Builder
May 17, 2012, 12:28:10 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Example code of MySql Query that has Server side Sorting, Filteirng, and Paging  (Read 1286 times)
ligerous
Newbie
*
Posts: 1


View Profile
« on: July 04, 2009, 11:04:18 AM »

Hello,

I have been playing around with sigma grid and really like it. I have only been able ot get the php download examples to work with mysql tables using the JSON Array Paging.

I was wondering if anyone has integrated server side filtering, server side sorting, and server side paging into one grid. If so, could you please post your code as I am having the hardest time combing all three.

Thanks
Logged
Edmund
Newbie
*
Posts: 2


View Profile
« Reply #1 on: July 30, 2009, 09:45:41 PM »

I am also having this problem. The grid only sorts/filters what is displayed on the page. The ideal behavior is it will sort/filter the whole recordset.
Is there a way to solve this?
Logged
adrianbj
Jr. Member
**
Posts: 8


View Profile
« Reply #2 on: September 07, 2009, 11:12:15 AM »

I just set things up for server side sorting, pagination and filtering using PHP and thought this might help you. This is basically my entire Controller.php file

You'll want to be careful of the $filter variable and the trailing " AND ". If you don't have an additional WHERE element after this, you'll need to remove the last " AND " or you will get an error. Also, in my case, payment_date is my default sortby field - you'll need to change this to suit your needs.

Hope this helps.


« Last Edit: September 07, 2009, 11:17:57 AM by adrianbj » Logged
steven
Moderator
Hero Member
*****
Posts: 544



View Profile
« Reply #3 on: September 07, 2009, 10:07:29 PM »

Very good. Thx for your sharing
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!