Sanjiv,
I hate to say it, but think I may have come across a 'bug' ...
In my controller I have:
procMe = js_callback('procMe')
and,
colModel = [
{'display':'id', 'name':'id', 'width':20,
'align':'center', 'process': procMe},
{'display':'ticker', 'name':'ticker','width':100,
'align':'left', 'process': procMe},
{'display':'type', 'name':'type', 'width':80,
'align':'left', 'process': procMe},
{'display':'px freq','name':'pricing_frequency', 'width':
90, 'align':'left', 'process': procMe}
]
I have run this *with* and *without* the ..... 'process': procMe}
The HTML (copied below) which is generated for the table might
indicate why I'm having problems. I've indented the HTML in the hope
of making them easier to read, but hopefully you can see what I'm
getting at....
Introducing the 'process': procMe is somehow pushing the table
structure out of shape.
Do you have any idea why this could be?
Many thanks,
Rob
*Without* the ....'process': procMe} [renders correctly]
<div class="bDiv" style="height: 400px;">
<table id="flex" cellspacing="0" cellpadding="0" border="0"
style="display: table;">
<tbody>
<tr id="row18">
<td align="center">18</td>
<td align="left">ADEN FP Equity</td>
<td align="left">equity</td>
<td align="left">daily</td>
</tr>
<tr id="row16" class="erow">
<td align="center">16</td>
<td align="left">ADEN VX Equity</td>
<td align="left">equity</td>
<td align="left">daily</td>
</tr>
<tr id="row11"> etc etc etc
*With* the .... 'process':procMe} I get the following [doesn't
render correctly]:
<div class="bDiv" style="height: 400px;">
<table id="flex" cellspacing="0" cellpadding="0" border="0"
style="display: table;">
<tbody>
<tr id="row18">
<td align="center">
<div style="text-align: center; width: 20px;">18</div>
</td>
<td class="sorted" align="left">
<div style="text-align: left; width: 100px;">ADEN FP
Equity</div>
</td>
<td align="left">
<div style="text-align: left; width: 80px;">equity</div>
</td>
<td align="left">
<div style="text-align: left; width: 90px;">daily</div>
</td>
</tr>
<tr id="row16" class="erow">
<td align="center">
<div style="text-align: center; width: 20px;">16</div>
</td>
<td class="sorted" align="left">
<div style="text-align: left; width: 100px;">ADEN VX Equity</
div>
</td>
<td align="left">
<div style="text-align: left; width: 80px;">equity</div>
</td>
<td align="left">
<div style="text-align: left; width: 90px;">daily</div>
</td>
</tr>
<tr id="row11"> etc etc etc
On Oct 26, 6:25 pm, Sanjiv Singh <
singhsanj...@gmail.com> wrote:
> On Mon, Oct 26, 2009 at 11:50 PM, Robert Sudwarts
>
> <
robert.sudwa...@googlemail.com> wrote:
> > Hi Sanjiv,
> > Thank you for your response! I haven't managed to get this working yet ...
> > as soon as I have, I will post exactly what I've done on the forum because
> > I'm not the only person who has had difficulty with this.
> > So...
> > a) 'process' works (that's great news!!)
> > b) the js function needs to be added to the colModel as a parameter ...
> > 'process' : js_callback('someFunction') ?
>
> Yes
>
> > c) the (in my case genshi template) needs to have (within it) a javascript
> > function: someFunction() {...} ?
> > Is that the solution....??
>
> Yes. someFunction(celDiv,id)
>
> Sanjiv
>
> > Regards,
> > Rob
>
> > 2009/10/26 Sanjiv Singh <
singhsanj...@gmail.com>
>
> >> On Mon, Oct 26, 2009 at 9:37 PM, Rob <
robert.sudwa...@googlemail.com>