I would look also on the Yahoo UI class libarary. You can set a CakePHP Ajax page to generate a JSON model and feed that into an Ajax datagrid class.
Depending on your project, you need also to evaluate efficiency both in speed and bandwidth. For instance if speed was the only concern, we might just be rendering all our data in bitmap form with the GD library instead of setting it in tables. Ajax, being client centric, is by definition impossibly to accurately benchmark before you release it to the public because adding the Javascript/JSON/Ajax layer to a datagrid makes the final layer of the applicaiton execute on the clients machines which is a heterogeneous environment. The classic LAMP model on the other hand puts the burden on your servers, which changes the bandwidth of the data as it moves from server to client. Note I said "changes" not "makes worse or better": if you are performance sensitive you need to measure the weight of rendering the HTML for 100 records and sending that HTML chunk through the server against the weight of sending the same data JSONed to a web app. Both the ultimate elapsed time to display and the resource consumption need to be independently evaluated. If the JSON method is hugely more efficient for a one client test and you expect massive traffic, it could ultimately be faster in high traffic context despite being slower in a single user test. Keep in mind though that if you are dealing with massive databases you might find that the overhead of Ajax plus the unavoidable overhead of a large database is a losing combination. For instance, Yahoo's new Ajax'ed mail is still noticeably slower than Yahoo Mail Classic. Consider excluding text and blob fields in the datagrid (or make them Ajax tipdowns that only populate when clicked) to speed up display On Dec 21, 4:47 am, hydra12 <[EMAIL PROTECTED]> wrote: > Yes, you can. It's not so easy to get setup, but I've written a > tutorial about it here:http://www.ntatd.org/mark/?p=29. > Also checkout this > post:http://extjs.com/forum/showthread.php?p=53728#post53728. > It starts with me asking questions trying to get the datagrid working, > then ends with me helping someone else get it working. I'll be > updating my blog with what I learned soon, but until I do (hey, it's > Christmas . . .), maybe it will help. I'm also willing to answer > questions as I have time. > > Hope that helps! > hydra12 > > On Dec 21, 5:36 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > thanks for your reply, > > I still have one question - > > Can i used this with cakePHP? > > > On Dec 21, 3:28 pm, dizz <[EMAIL PROTECTED]> wrote: > > > > There isn't an Ajax helper for a datagrid but take a look at extjs.com > > > > On Dec 21, 11:35 am, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > i just want to know , > > > > how can we create datagrind in cakephp using ajax helper > > > > I have post this topic before this also > > > > but I didn't find any solution > > > > please help me, if anyone finds the solution --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
