Hi everyone,
I'm trying to use the dojo grid in a Zend view to make the sum of 2 comumns ; it's possible on the paper, but I haven't been able to do it.
If anyone breaks this mystery, it'd be gread I've been woking on this for 2 days now...
Here's the code :
// My function that is supposed to add the OD column to ID, it never gets fired...
<script type="text/javascript">
function getODtoID() { alert("test"); }
</script>
// My grid, it's working except for the column get="getODtoID"
<table id="grid" dojoType="dojox.grid.Grid" store="pStore" query="{ post_id: '*'}" >
<thead>
<tr>
<th field="status" width="30px">Status</th>
<th width="5em" get="getODtoID">OD to ID</th>
</tr>
</thead>
</table>
<?php
$this->dojo()->enable()
->setDjConfigOption('parseOnLoad', true)
->requireModule('dojo.parser')
->requireModule('dojo.data.ItemFileReadStore')
->requireModule('dojox.grid.Grid')
->requireModule('dojox.grid._data.model');
?>
Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger, c'est gratuit !
没有评论:
发表评论