Version 0.6
Hi,
Version 0.6 will be release during this month. It has a lot of new and great features.
Zend_Config Support
$grid = Bvb_Grid_Data::factory('Bvb_Grid_Deploy_Table',Zend_Config $options);
Zend_Db_Table_Abstract Support
Now you can define the grid by passing only the model:
$grid->setModel(new Bugs());
echo $grid;
CRUD operations now use Zend_Form
You can easily setup forms by passing the model or defining all fields manually
$form = new Bvb_Grid_Form();
$form->setModel(new Bugs());
$grid->addForm($form);
If you don’t set any model, Bvb_Grid_Form will use the model provided with $grid->setModel();
New deploy classes
- jqgrid (Many thanks to Martin – http://code.google.com/p/zfdatagrid/people/list ) – An implementation of jqGrid ( http://www.trirand.com/blog/ )
-
Open Flash Chart => Examples here: http://zfdatagrid.com/grid/default/site/ofc
- json
New Fields Options
Fields have now more options and more well defined. Below is a list of all different options:
- helper// Zend_View Helper
- order//Alllow field to be ordered, or not
- title
- remove
- escape
- hidden
- decorator
- hRow
- position
- orderField
- class
- searchType
- searchTypeFixed
- search
- format
- callback
- style
Multi Grids per page
You can now have multi grids per page with all options (order, filters, pagination) and they won’t interfere between them .
$grid = Bvb_Grid_Data::factory('Bvb_Grid_Deploy_Table',Zend_Config $options,'grid_id');
Bug Fixes & Performance
A lot of bug fixes and performance improvements.
TEST IT
The release will happen this month, bu testers are needed so the launch can occur without troubles. Get the latest source from the project page http://code.google.com/p/zfdatagrid/
New Features (Features for 0.6 closed)
If you would like to see more functionality, this is the time to speak. Please open a new report here http://code.google.com/p/zfdatagrid/issues/list or send an email trough here http://zfdatagrid.com/contact/
Check the examples
Try the latest features here http://zfdatagrid.com/grid/ and don’t forget to take a look at source http://zfdatagrid.com/grid/default/site/code
Best Regards,
Bento Vilas Boas


eureka Said,
February 10, 2010 @ 15:31
Hi,
Good news !
Where could I download the pre-release version, so that I can try it in various situations ? I can not find it in code.google.com, I have just found versions 5.0 and 5.1 dated on 5 january, not with all new improvements I think..
Thanks
Bento Vilas Boas Said,
February 10, 2010 @ 17:20
Hi eureka.
Please check this page:
http://code.google.com/p/zfdatagrid/source/checkout
If you don’t have SVN, please let me know and I will send you the source.
Best Regards,
Bento Vilas Boas
Italba Said,
February 11, 2010 @ 10:41
Hi, can’t hide columns with version 0.6 .
$grid->updateColumn($currKey, array('hide' => 1));
$grid->updateColumn('id_cantiere', array('hide' => 1));
$grid->updateColumn('id_cliente', array('hide' => 1));
The columns where hidden with 0.5, not with 0.6.
Regards,
Italo A.
Italba Said,
February 11, 2010 @ 10:55
Another problem with 0.6:
I added a column for edit
$editCol=new Bvb_Grid_ExtraColumns();
$editCol->position('left')
->name('Edit')
->title('Edit')
->decorator('view->baseUrl().'/rdo/edit/id/{{'.
$currKey.'}}">view->baseUrl().'/images/edit.png" alt="Edit"/>');
$grid->addExtraColumns($editCol);
The resulting link is
http://comm2/rdo/edit/id/{{A.id_rdo}}the field value is not substituted.
It worked ok with 0.5
Regards,
Italo A.
Bento Vilas Boas Said,
February 11, 2010 @ 12:59
Hi Italba,
Version 0.6 as a few changes.
First, the option hide has been renamed to hidden.
And the updateColumn() method now receives the field output name as first argument.
In your second comment, should be something like {{id_rdo}}. Please note that field alias are set ona key=>value base and not using AS.
Wrong:
$select->from(‘table’),array(‘id as name’,'option’);
Correct:
$select->from(‘table’,array(‘name’=>’id’,'option’));
Best Regards,
Bento Vilas Boas
eureka Said,
February 11, 2010 @ 18:01
Thanks Mascker, I have tried the SVN right away ans that works like a charm.
Reading your latest post, especially “should be something like {{id_rdo}}”, I have a question :
Imagine you do a join with two tables, each having a property ‘id_rdo’, differenciated by an alias. How specifying the property we want to see subsituted in resulting link ? (in previous version, this problem occured, does issue already exists ?)
Bento Vilas Boas Said,
February 11, 2010 @ 18:06
Hi eureka,
With the new version, is always the output that is specified. No more ‘c.id_rdo’ or ‘id_rdo as final’.
Its always the field output that matters.
Best Regards,
Bento Vilas Boas
eureka Said,
February 23, 2010 @ 11:24
Is there a documentation to get a well-understanding of new functionalities, to facilitate tests without asking the team some questions ?
Bento Vilas Boas Said,
February 23, 2010 @ 15:50
Hi,
The new documentation will be released at the same time of software. Just a few more days…
Best Regards,
Bento Vilas Boas
altivec Said,
March 5, 2010 @ 18:19
Hi!
I installed successfully the 0.5 & 0.6 as a new site without problem.
But I can’t get it work with my configuration.
We use module and multi-language and layout display, with url like this :
http://www.test.com/fr/grid
We can’t get any error message by trying to catch any exception…
In fact, the error occurs when trying to launch any BVB class…
Any idea ?
All what I get is a white page…
Thanks for your help!
Regards,
Aurélien.
Bento Vilas Boas Said,
March 5, 2010 @ 18:42
Hi,
You get a blank page because your are not displaying errors.
Please paste this code in your index.php file
ini_set(‘display_errors’,1);
error_reporting(-1);
And let me know the result.
Best Regards,
Bento Vilas Boas
altivec Said,
March 5, 2010 @ 18:43
Is there a way to display large results in textarea instead of input ???
altivec Said,
March 5, 2010 @ 18:56
Hi, I display errors, I try the catch exceptions too on the controler dispatch, but nothing…
When using die(‘toto’); I get display of toto before calling the BVB class, not after…
Bento Vilas Boas Said,
March 5, 2010 @ 18:59
Hi,
Have you download the sample project? It works?
Best Regards,
Bento Vilas Boas
Bento Vilas Boas Said,
March 5, 2010 @ 19:16
Hi,
I don’t know any method to change element type.
Element is built based on table definition. If it is a text, smalltext, medium text or longtext the input will be an textarea
You can manually ovverride this beahavior by removeing the element and then add it again as textarea.
Will be something like this:
[CODE]
function crudAction ()
{
$grid = $this->grid();
$grid->query(new Bugs());
$form = new Bvb_Grid_Form();
$form->setAdd(1)->setEdit(1)->setDelete(1)->setAddButton(1);
$grid->setForm($form);
$grid->getForm()->removeElement(‘date’);
$grid->getForm()-> addElement(‘textarea’,'date’,array( ‘decorators’=>$form->getElementDecorator(), ‘order’=>5));
$this->view->pages = $grid->deploy();
$this->render(‘index’);
}
[/CODE]
Please remember to add any validation to the element. Also change the value of order to stay in touch with what you want…
Best Regards,
Bento Vilas Boas
altivec Said,
March 5, 2010 @ 19:44
Hi, yes, the sample project works as it.
I had to change some things to apply to my zend website because of zend layout, and module way.
What is strange is that I can’t even get some code result, nothing, only blank page…
I can show you my code and the website if you want.
Thanks,
Aurélien.
Bento Vilas Boas Said,
March 5, 2010 @ 19:49
Hi,
Yes, I would really appreciate it.
You can send that to geral[that symbol]petala-azul.com
Best Regards,
Bento Vilas Boas
altivec Said,
March 5, 2010 @ 20:28
I just sent you the email