DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

PHP and XAJAX Grid

By: Shailesh Singh | 04 Sep 2008 11:02 pm

Hi folks I came across this amazing class in the PHP classes forum. I have got the class running on my machine without any problem. I would like to achieve something like when the user selects to filter on a specific field then he should be able to see the defined relevant cols only and not all the cols from the db. For example I have Last Name , First Name, E-mail,
Origin and Hobbies stored as columns in the db. When I search for a particular record on the filter instead of displaying 5 cols I would like to see only 3 cols like Last Name, First Name and Hobbies from the db in the same GRID view format. Has anyone tried this class before. If yes please could you guide me in acheiving this within the code. I would highly appreciate it!

The class can be found on:

http://www.phpclass es.org/browse/ package/3206. html

Kind regards,

Comments

I just walked through the code and thought of the same. In the current version, they have provided the search option for a particular one column only in the select list.

You can alter that and make multi-column. But you need to change the same in form as well as the query logic part in the table.inc.php file (eg: person.inc.php file). You need to pass all the user input field values to the method of the table class. Then generate the query which would be depends on the data.

Thanks.
By: PHP Guru | 04 Sep 2008

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move