Version 0.6 is out!!!
Hello,
After some delays version 0.6 of ZFDatagrid is out.
Top Features:
- Doctrine Support
- Zend_Form for CRUD operations
- Zend_Config Support
- Multiple Instances per page (no conflicts at all…)
- Support for Extra Rows
- Conditional Fields Presentation
- Option for detailed view
- PRG Form processing
- Render specific parts separately (filters, titles, pagination, etc…)
- Conditional Fields Rendering
- jqGrid Rendering => Demo: http://zfdatagrid.com/grid/default/jqgrid
- Open Flash Chart support => Demo: http://zfdatagrid.com/grid/default/site/ofc
- And a lot more…
Download it: http://code.google.com/p/zfdatagrid/downloads/list
Upgrade Guide: http://code.google.com/p/zfdatagrid/wiki/Upgrade
First Grid (manual): http://code.google.com/p/zfdatagrid/wiki/Start
Live Demos: http://zfdatagrid.com/grid/
More info here: http://code.google.com/p/zfdatagrid/
More then two months have passed since last release. And the reason is that a LOT has change. Things seams more ‘right’ now. However, being so much time without a release won’t happen again. In about a week a 0.6.1 version should be out to fix unreported bugs. Also some features have been postponed for version 0.6.1
Report any bugs you may find here http://code.google.com/p/zfdatagrid/issues/list
To “experienced” developers. ZFDatagrid now implements an interface for source. Meaning that more sources can be added (like propel, CouchDB, etc, etc,). If you are interested in developing such source please contact me and we will find a way to further improve this grid.
Special thanks to Martin Minka for developing the jqGrid render and to Solomon James for Doctrine Integration http://code.google.com/p/zfdatagrid/people/list . Also thanks to the people that is continuous reporting bugs and sending their toughs. I really appreciate it.
Stay cool and whenever possible open-source…
Best Regards,
Bento Vilas Boas


mirko Said,
March 18, 2010 @ 10:46
Hi
Is there eval option? sth like that: ‘eval’=>”substr_replace(‘{{Content}}’,'…’,40)”?
Regards
Mirko
Bento Vilas Boas Said,
March 18, 2010 @ 15:17
Hi,
You can use the callback option.
More info here: http://code.google.com/p/zfdatagrid/wiki/GridOptions#callback
Best Regards,
Bento Vilas Boas
DiegoAlberto Said,
March 18, 2010 @ 23:15
Ok, good to hear about new version. Just to add something:
We’re currently added the grid source as an svn external for our main repository, and in the last updates there were changes that broke our applications… Adding testing or something could be good for the ones that like to be always updated. Thanks for the good work =D !
Italba Said,
March 19, 2010 @ 10:41
Hi, excuse me if i write here for issues, the bug tracking system does not accept multiple issues. I used version 0.6 – 553 2010-02-10 of zfdatagrid for a project, and i am trying to upgrade to 0.6 final. The grid does not respect the maximum width anymore, and the ordering arrows disappeared. The “grid.ini” and “estilos.css” files are not been modified.
Regards,
Italo A.
Bento Vilas Boas Said,
March 19, 2010 @ 14:50
Hi,
The updates that broken your application were related with file renaming. Bvb_Grid_ExtraColumns to Bvb_Grid_Extra_Column and Bvb_Grid_Data to Bvb_Grid
This changes will always broken a previous installation. There is nothing we can do about that.
However, I can say that are no previsions in a near future for file renaming. So this shouldn’t happen again.
Best Regards,
Bento Vilas Boas
Bento Vilas Boas Said,
March 19, 2010 @ 15:28
Hi,
Are you setting images URL?
$grid->setImagesUrl(‘link’);
About styles. No classes where changed, so make sure you are reference to the syles file correctly.
Best Regards,
Bento Vilas Boas
Italba Said,
March 19, 2010 @ 16:36
Hi, corrected
$grid->imagesUrl=$this->getRequest()->getBaseUrl() . '/images/';
with
$grid->setImagesUrl($this->getRequest()->getBaseUrl() . '/images/');
but nothing changed. It seem that the “order” function is not activated.
I did not changed style file references, just substituted Bvb and OFC libraries and the “grid.ini” file with the new version. Grid colors and fonts are ok.
Best regards,
Italo A.
Bento Vilas Boas Said,
March 19, 2010 @ 17:08
Hi,
Can you tell me the src for images? Check source code for something like
seta_cima.gif
Best Regards,
Bento Vilas Boas
Italba Said,
March 19, 2010 @ 17:38
Hi,
found the problem. The html output was
<img src="/images/seta_baixo.gif"
now is
<img src="/grid/public/images/seta_baixo.gif"
What is wrong with my “setImagesUrl”?
Best regards,
Italo A.
Bento Vilas Boas Said,
March 19, 2010 @ 19:49
Hi,
You can also set imagesUrl() from the config file.
Put a ; at the beginning of line number 7, change it to the correct value or remove it.
Best Regards,
Bento Vilas Boas
binio Said,
March 19, 2010 @ 21:14
Hi Bento,
I tried to use class for column, but it doesn’t work.
example: $grid->updateColumn(‘inumber’, array(‘title’ =>’Number, ‘class’ => ‘width_100′));
Bento Vilas Boas Said,
March 19, 2010 @ 22:27
Hi Binio,
No problems here.
Have you also updated templates?
Best Regards,
Bento Vilas Boas
binio Said,
March 19, 2010 @ 22:56
ok, thx,
next question
I used Bvb_Grid_Source_Array
and in one column is displayed html code instead of image like this:
Something changes ‘<' into < ?
Bento Vilas Boas Said,
March 19, 2010 @ 23:00
Hi Binio,
Probably because the output escape.
Use $grid->setEscape(false); // I don’t recommend unless your know your data
$grid->updateColumn(‘column’,array(‘escape’=>’false’)); //Use this
Best Regards,
Bento Vilas Boas
binio Said,
March 19, 2010 @ 23:05
thx!
sqrbrkt Said,
March 20, 2010 @ 00:09
Fantastic news Bento, can’t wait to switch my app over to the new version
Many thanks
dAN
Bento Vilas Boas Said,
March 20, 2010 @ 00:31
Hi sqrbrkt,
Thanks for your support
Best Regards,
Bento Vilas Boas
Italba Said,
March 22, 2010 @ 11:58
Hi,
in the generated html of zfdatagrid I have found some style and class not defined in “estilos.css”, like
style = "c" style = "d" style = "q" class="alt" class=" "
Maybe that’s why the grid is now much wider than with version 06 – 553 ?
Regards,
Italo A.
Bento Vilas Boas Said,
March 22, 2010 @ 16:07
Hi Italba,
That isn’t supposed to happen. This happens on the example project?
Best Regards,
Bento Vilas Boas
Italba Said,
March 24, 2010 @ 14:02
Hi, sorry for late answering. You can find the style and classes I wrote before in the page source of the demo (http://zfdatagrid.com/grid/) site too. I would like to know how to set a style for data filter input fields: In version 06 – 553 there was a style definition of “width:95%” now absent, that’s why my grid gets wider.
Regards,
Italo A.
Bento Vilas Boas Said,
March 24, 2010 @ 16:45
Hi Italba,
The style options is still available as well as a new option for css class’s (with latest revision….)
$filter->addFilter(‘field’,array(‘class’=>’my_css_class’,'style’=>’width:200px;’));
If this still doesn’t work, can you send me your code to geral[that symbol]petala-azul.com (just the filters)
Best Regards,
Bento Vilas Boas
Italba Said,
March 24, 2010 @ 17:53
Hi Bento,
I had not set any style for filters! “width:95%” was set as default. Now, with the example program, I get:
I can’t find where “style=N” and “style=C” are defined.
There is a way to define the style for all the filters in the “grid.ini” file?
Thank you and regards,
Italo A.
Italba Said,
March 24, 2010 @ 18:02
Sorry, the code was too complex for message pasting, I’ll send you by mail.
Regards,
Italo A.
ronaldud Said,
March 24, 2010 @ 23:08
Hi, (im sorry by my english)
Excelent version, i not how if this issue has reported .. so in de file Bvb/Grid/Deploy/Table.php
- Line 1090: In call method ajax for menu previous is fail
error: agridAjax
good: gridAjax
Thanks,
Bento Vilas Boas Said,
March 24, 2010 @ 23:18
Hi ronaldud,
Thanks for your support and for reporting this bug.
I’ve already fixed it. You can wait for the 0.6.1 release, or update your SVN.
Thanks again,
Best Regards,
Bento Vilas Boas
jaboyd Said,
March 25, 2010 @ 19:42
In Bvb_Grid_Source if use:
$select = $this->getDb->select()->from(‘table’);
result: Method “getDb” does not exist and was not trapped in call()
The correct is:
$select = $this->_db->select()->from(‘table’);
J. A. Boyd
Bento Vilas Boas Said,
March 25, 2010 @ 19:54
Hi jaboyd,
Where did you see that you should use
$this->getDb()?
Best Regards,
Bento Vilas Boas
jaboyd Said,
March 25, 2010 @ 20:59
Hi Bento !
In: http://code.google.com/p/zfdatagrid/wiki/Bvb_Grid_Source
Referenced by: http://code.google.com/p/zfdatagrid/wiki/Start
Best Regards,
J. A. Boyd
Bento Vilas Boas Said,
March 25, 2010 @ 22:22
Hi,
That method is custom differs from developer to developer.
It’s just an example.
Best Regards,
Bento Vilas Boas
sqrbrkt Said,
March 29, 2010 @ 15:32
hi Bento
The new grid code is working well for me.
One thing I wanted to ask about: when I apply a filter the resulting URL can sometimes be very long, because the filter parameter includes the names of every column.
Is it possible for the filter parameter to only include the filtered columns, and assume the other columns are unfiltered?
I was going to try and adapt the code myself but I wanted to check there’s not some technical reason why it won’t work
Many thanks
Dan
Bento Vilas Boas Said,
March 29, 2010 @ 17:24
Hi sqrbrkt,
No technical reason for that. And makes sense.
Feel free to change that, because I won’t be working in the project until this Thursday.
Thanks,
Best Regards,
Bento Vilas Boas
Blyan Said,
March 31, 2010 @ 22:01
Hi Bento!
The ‘delete’ function doesn’t use cascading (even if it’s set up in db table model’s referencemap ). Or I just forget something to set on?
Regards,
Blyan
J. Khen Said,
April 3, 2010 @ 17:51
Hi Bento !
I need define “… size=’6′…” in select field. This is possible ? How to do it ??
Thanks for the ZFDatagrid !!
Regards,
J. Khen
Bento Vilas Boas Said,
April 3, 2010 @ 18:37
Hi Khen,
At this moment it isn’t. But you can use the style option.
I’m assuming you are talking about filters?
Check this page for more info: http://code.google.com/p/zfdatagrid/wiki/Filters
Best Regards,
Bento Vilas Boas
J. Khen Said,
April 3, 2010 @ 22:12
Thanks Masker !
I will test !!
Please, add this feature in the wish list
ZFDatagrid is great !!
Regards,
J. Khen
altivec Said,
April 13, 2010 @ 15:23
Hi, I am wondering how to use the zfdatagrid in order to display some datas, with interval date filtering, and apply SUM function.
Indeed, I have a table with datas ordered by day, and I’d like to offer the possibility to search by date interval, and add a SUM(averageTotal) in the query, in order to have a accurate result.
Any idea ?
Thanks,
Aurélien.
lormitto Said,
May 28, 2010 @ 12:02
Hi Bento,
Could you please paste an example of class => width_100 usage?
“Have you also updated templates?” – i can not figure it out. I would be thankful for any example.
Kind Regards,
lormitto
Mascker Said,
May 30, 2010 @ 22:29
Hi,
$grid->updateColumn('my_column',array('class'=>'my_class'))// This applies the class to this column
Best Regards,
Bento Vilas Boas
sunilkondabathini Said,
July 23, 2010 @ 07:35
Hi,
I am unable to add more than 1 BVB JqGrids in single page. Displaying only first grid. Could you please let me know the solution for this.