(on Wednesday, 01 October 2008, 10:10 AM +0200):
> 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:
> '*'}" >
Where to you define pStore? You need to define an explicit dojo.data
store and then reference it in your grid -- but I don't see the store
definition anywhere in here. If you haven't defined it, that's likely
the problem.
> <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 !
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论