Saturday, May 31, 2008

The new version 4.2.6 of PHP DataGrid (with AJAX autocomplete)


The new version 4.2.6 of PHP DataGrid is available for downloading from here.

There are some changes in this version. Read carefully Getting Started.

From Version 4.2.4 PHP DataGrid works with PHP 5 ONLY!!! If you still use PHP 4 - find old version in "php4" folder

Main additions and improvements:

1. * Feature: [added] new language Romanian(ro/ro_utf8), provided by: Rotter Robert
2. * Feature: [added] new attribute "width" in filtering fields
3. * Feature: [added] new method: allowExportingTypes();
4. * Feature: [added] abbility to use in Filtering "," to make a search by some words
5. * Feature: [added] new feature for textbox in filtering: AJAX autocomplete function (provided by Jordi Nin)


1. # Bug: [fixed] syntax error in css classes
2. # Bug: [fixed] in drawing tabular layout of filter drawing
3. # Bug: [fixed] error on Upper/Camel case in "field_data" attribute for "link" fields
4. # Bug: [fixed] in floatingToolTipsFieldExists() method
5. # Bug: [fixed] with "Back" button, when it was not allowed
6. # Bug: [fixed] with "Upload" link for images and files, when field defined as readonly.
7. # Bug: [fixed] error with numRows() method for oracle
8. # Bug: [fixed] in selectSqlItem() and executeSql()
9. # Bug: [fixed] with on_js_event attribute
etc.


To view a Live Demo click here.

To download new version click here.

3 comments:

rodrigo at platto dot com dot br said...

Hi.

I'm using your DataGrid 4.2.6 and I found a bug.

The problem is when you need to edit a image (remove and upload again).
You only need to set the property "readonly" in editmode when have to be "true".

Now, check this:
In datagrid.class.php line 4531 you fill var $field_property_readonly variable.
Line 4565 you check if it is true and than fill some control variables. If is not true, variable $readonly is empty.
Until here is ok.

Then, line 4842 you check if var $readonly is DIFFERENT from "" (empty). And then it will be available the Remove (image) link.
This should be $readonly == "" (I prefer use function empty()).

So it works correctly.

Thanks for your time.

Jordi Nin said...

this is mine!!
This is my idea, only insert my name to autocomplete, thanks!!

Jeremy said...

I am having trouble populating the datagrid with records via mssql. I can connect but I get 0 records returned. I have compiled php to include mssql and can successfully connect and run a page using mssql_connect(), mssql_select_db(), mssql_query(), and so on. Any ideas?

Thanks

Jeremy