Re: [web2py] Re: Some powerTable questions

2011-08-31 Thread Bruno Rocha
On Thu, Sep 1, 2011 at 2:26 AM, Roberto Perdomo wrote:

> Bruno, please add #refreshLabel = 'Refresh' to you example of powergrid, or
> the best solution: why not use T('label') as example
> self.attributes['refreshLabel'] = T('Refresh') in  powergrid.py for
> translate support?


Ok, I will add it, and upload a new version with some bug fixes soon.

Thanks,


Re: [web2py] Re: Some powerTable questions

2011-08-31 Thread Roberto Perdomo
Bruno, please add #refreshLabel = 'Refresh' to you example of powergrid, or
the best solution: why not use T('label') as example
self.attributes['refreshLabel'] = T('Refresh') in  powergrid.py for
translate support?



2011/8/29 Bruno Rocha 

> something like this:
> http://wijmo.com/Wijmo-Complete/samples/#tree|overview
>
> or may be this:
> http://wijmo.com/Wijmo-Complete/samples/#grid|grouping-and-aggregates
>
> (the column resizing you talk
> http://wijmo.com/Wijmo-Complete/samples/#grid|column-resizing)
>


Re: [web2py] Re: Some powerTable questions

2011-08-29 Thread Bruno Rocha
something like this: http://wijmo.com/Wijmo-Complete/samples/#tree|overview

or may be this:
http://wijmo.com/Wijmo-Complete/samples/#grid|grouping-and-aggregates

(the column resizing you talk
http://wijmo.com/Wijmo-Complete/samples/#grid|column-resizing)


[web2py] Re: Some powerTable questions

2011-08-29 Thread Pierre Thibault
On 29 août, 20:26, Bruno Rocha  wrote:
> what is your data source?

I have XML data.

> datatables can handle json and xml (but it is not implemented in the plugin,
> but can be done with JS), if you want a JSON based grid I recommend
> PowerGrid, another plugin I created. PowerGrid is based in JSON or PJSON, it
> comes with a default callback module, but you can specify any callback
> function wich returns JSON to be loaded in the grid.

I can transform my data in Python or JS. I don't care that much about
coding the data transformation necessary to make things work. What
seems to be the challenge is displaying the hierarchy I talk about.

What would be your recommendation?


Re: [web2py] Re: Some powerTable questions

2011-08-29 Thread Bruno Rocha
what is your data source?

datatables can handle json and xml (but it is not implemented in the plugin,
but can be done with JS), if you want a JSON based grid I recommend
PowerGrid, another plugin I created. PowerGrid is based in JSON or PJSON, it
comes with a default callback module, but you can specify any callback
function wich returns JSON to be loaded in the grid.


[web2py] Re: Some powerTable questions

2011-08-29 Thread Pierre Thibault
Thank you.

So, I don't have data coming SQL. Would then recommend solidtable?

On 29 août, 15:46, Bruno Rocha  wrote:
> Datatables has resizeable feature. So you can do it with a bit of
> javascript. But there is not an API for that in plugin yet.
>
> PowerTable will be rewriten, may be using solidtable as base.
>
> Web2py now has too many table/grid options and I think we can just extend
> the existing best ones.
>
> Powertable already has nested tables 'details' but allow only obe level.
>
> Using the new extracolumns feature in sqltable or solidtable we can achieve
> your tree like nested tables. A bit of jquery and this would be easy.
>
> I am not saying you dont have to use powertable, just that it is a little
> deprecated and can be very better with new features (web2py evolves too
> fast!)
>
> The only features that powertable has and other dont. is nested tables, by
> column filtering, edit in place, tooltips, ajax.
>
> Putting this 5 features in smartgrid and this will be the best option.
>
> http://zerp.ly/rochacbruno
> Em 29/08/2011 15:52, "Pierre Thibault" 
> escreveu:
>