I'm looking for a decent DataGrid class |
[eluser]Majd Taby[/eluser]
a datagrid is just a class that generates a table from data?
[eluser]Pygon[/eluser]
Quote:http://www.phpbakery.com/?page_id=15 It always annoys me when someone says "I like codeigniter, but it doesn't do <insert some random thing that is not the responsibility of a PHP framework>". CI doesn't create MOST types of html elements for you, nor should it, so expecting it to do JS formatted tables for you is rediculous. Regardless -- I love EXT for all these things, but the worst thing about it is the size (ext_all.js) or the number of files you have to include in order to get some basic functionality to work. I've done a bit of work (planned library) to seperate EXT into files that can be included seperately (brings it down from 500k to about 200k to get the most basic of functions to work, and a minimal amount of include files to get all functionality). If there is interest, I'll work on the library, which will allow you to only send the parts of EXT that your page will likely be using.
[eluser]esra[/eluser]
[quote author="Pygon" date="1205193952"]Regardless -- I love EXT for all these things, but the worst thing about it is the size (ext_all.js) or the number of files you have to include in order to get some basic functionality to work.[/quote] Jack Slocum (EXT JS author) has his own performance related arguments about loading all of EXT JS in a single bound, but I'm probably in agreement with you about either lazy loading or using dependency injection (something like Squirrel IoC) to incrementally load EXT JS code as needed. I use JQuery in my frontends and EXT JS in my backends. If not for loading speed, I would probably use EXT JS in the frontend. In my opinion, the most positive advantage of using EXT JS over other solutions is better widget integration, especially if you want to use drag and drop between widgets in your admin user interface (e.g., dragging roles or privileges to a user account between widgets). Not sure, but it sounds like we have some similar objectives.
[eluser]wiredesignz[/eluser]
[quote author="jTaby" date="1205191673"]a datagrid is just a class that generates a table from data?[/quote] Thats what I am looking for, a PHP datagrid, with css styling, and some js features. I like the look of the phpBakery datagrid class, maybe combined with the TableCloth utility.
[eluser]MadZad[/eluser]
From another thread, I stumbled across Matt Kruse's www.javascripttoolbox.com/lib/table/ It's simple and fits our needs. That is, I send all the query results to a table the view, and the javascript handles the pagination and column sorting with minimal setup/effort by the application. It also relies on CSS, but the actual formatting of the table is up to you. Clearly not a good approach for queries with millions of results, and the tool hasn't gotten any updates since 3/07, but I had it up and running in 30 min, so you may find it worth looking into. Plus, other JS tools (and handy donate link :-) ) on that site.
[eluser]Pygon[/eluser]
[quote author="esra" date="1205200663"] Jack Slocum (EXT JS author) has his own performance related arguments about loading all of EXT JS in a single bound, but I'm probably in agreement with you about either lazy loading or using dependency injection (something like Squirrel IoC) to incrementally load EXT JS code as needed. /.../ Not sure, but it sounds like we have some similar objectives.[/quote] Probably. My goal was really only for the instance where I'm using only one or two widgets between all pages, such as tooltips and forms, and didn't want the full ext library. I also wanted to make it easier to combine files into a custom EXT package without sifting through 400 files. This could be combined with something like Adamp1's Asset Linker to provide a single js file about 2/3rds the size of normal ext before compression, with only the features used on your pages, and will be even faster if all pages use the same version you've created. Alternatively, you could just create you're own combined file, since the packages weren't obfuscated when YUI compressed. I've posted my build XML file if you'd like to take a look.
[eluser]Majd Taby[/eluser]
dang armorfist, that's nice...though it's a little off in Safari and when you resize it selects the whole page, but pretty nice |
Welcome Guest, Not a member yet? Register Sign In |