View Poll Results: Was this helpful?
- Voters
- 320. You may not vote on this poll
-
Yes - Very Much
247 77.19% -
Yes - Had to tweak it
43 13.44% -
No - Maybe
14 4.38% -
Not at All!!!
16 5.00%
-
28 May 2008 8:17 AM #101
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
3 Jun 2008 12:51 AM #102
thanks
thanks
Great plugin, works like a charm. Thanks

-
4 Jun 2008 7:25 AM #103
Tooltip for Grid Summary Plugin
Tooltip for Grid Summary Plugin
Hello,
This plugin is great, it was very usefull for me.
But i need tooltips in the summary row. I've tried some things but nothing works
, can anyone help
Thanks for help!
Best Regards
Lukas
-
4 Jun 2008 7:40 AM #104
@lukas, these might help:
http://extjs.com/forum/showthread.php?t=953
http://extjs.com/forum/showthread.php?t=31243
don't have time to work on this atm, so let us know how you fare if you make some progress
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
5 Jun 2008 12:30 AM #105
Thank you for the fast reply.
These functions I’ve already tried and i got no success.
For the normal column it is no problem like this.
but the summary renderer ignores the "attr" value.PHP Code:renderer: function (value,params,data)
{
params.attr='ext:qtip="my tooltip"';
return value;
}
No Tooltip appears when i hover over the summary row.
So I need a tooltip especially for the summary rowPHP Code:summaryRenderer: function (value,params,data)
{
params.attr='ext:qtip="my tooltip"';
return value;
}
I hope somebody can help me.
Best regards
Lukas
-
5 Jun 2008 1:13 AM #106
@lukas, you're right -- the existing cellTpl seems to be missing the attribute bit.
try this cellTpl config for the GridSummary plugin:
then try your summaryRenderer again and let me know how it works out for you.Code:var myGrid = new Ext.grid.GridPanel({ // snip unecessary code plugins: [ new Ext.ux.grid.GridSummary({ cellTpl: Ext.apply(new Ext.Template( '<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} {css}" style="{style}">', '<div class="x-grid3-cell-inner x-grid3-col-{id}" unselectable="on" {attr}>{value}</div>', "</td>" ), { disableFormats: true }) }) ] // snip unecessary code });
[edit]
it was indeed the cellTpl config.
i've updated the code and posted a new zip package in post #9.
i've also fixed 2 for-loop closure bugs (i think), and added a gridsummaryrow tooltip to the included example.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
6 Jun 2008 1:59 AM #107
great
great
good work!
Thanks a lot, for the very fast replys.
-
9 Jun 2008 6:15 PM #108
Using JSON Store with gridsummary
Using JSON Store with gridsummary
Guys,
After some playing around, I found that I had to make sure that the variable coming in from the data source that was being used in the summary calculations needed to be typecast into an integer or a float.
On line 171, you can see that if ext.num can't detect a string as a number (which was happening in my case) it returns 0.
One possible solution is to change line 171 toPHP Code:return v + Ext.num(record.data[field], 0);
But I think that this should actually be fixed in data source (ie PHP outputting JSON in my case). So no need to patch this excellent plugin, just thought it might help some people who have the same problem.PHP Code:return v + Ext.num(record.data[field], parseFloat(record.data[field]));
-
9 Jun 2008 6:25 PM #109
what's the number value/string being returned by your PHP script?
[edit]
that Ext.num check is there only to guard against nulls / empty strings.
if your Record was setup correctly (i.e. specifying type: 'float' or type: 'int' in the Reader's config), then that little check there shouldn't be returning 0.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
10 Jun 2008 1:19 AM #110



great job thus far!
Reply With Quote