AshishJoshi-asj / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bvb_Grid_Template_Table_Table not aware of its Bvb_Grid_Data (the model or other data source) #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Extend Bvb_Grid_Template_Table_Table
2. Use, for example, table name for Table ID
<table id=".$this->_grid->_model->name." name=".$this->_grid->_model->name.">

3.

What is the expected output? What do you see instead?
I think the Template should be aware of the calling Grid (maybe protected
$_grid variable in Template class), or there should be some other way of
communication between the Grid instance and Template instance.

What version of the product are you using? On what operating system?
0.6alpha

Please provide any additional information below.

Original issue reported on code.google.com by vlatko.b...@gmail.com on 10 Feb 2010 at 7:18

GoogleCodeExporter commented 9 years ago
Hi,

Use the following method to set template params

$grid->addTemplateParams(array(key=>value));
$grid->addTemplateparam($key,$value);

Example:
$grid->addTemplateParam('grid',$grid);

Then in your template 

$model = $this->options['userDefined']['grid']->getModel()->info();

Best Regards,
Bento Vilas Boas

Original comment by pao.fre...@gmail.com on 10 Feb 2010 at 10:40

GoogleCodeExporter commented 9 years ago
Thanks Pao, 

you are really fast in solving issues and answering the question. 

Maybe version 0.6alpha should upgrade to 0.6rc?! ;-)

When can we expect the 0.6 draft manual? There are some features (e.g. 
tooltipFilter)
I do not know how, when and where to use.

Original comment by vlatko.b...@gmail.com on 11 Feb 2010 at 7:18

GoogleCodeExporter commented 9 years ago
Verified

Original comment by vlatko.b...@gmail.com on 16 Feb 2010 at 12:02

GoogleCodeExporter commented 9 years ago

Original comment by bento.vi...@gmail.com on 3 Mar 2010 at 4:56