PDA

View Full Version : Help with Grid Refreshes / Ajax



Ian
9 Jan 2007, 2:20 PM
Hi,

I'm just getting started with both YUI and YUI-ext, and would like to use the Grid control for an app I'm developing. I've gotten some of the samples to work but am looking to try and get a high-level overview of the events, handlers, workflow etc that I should be trying to implement.

What I'd like to get setup is just to load and then refresh a Grid via Ajax, preferably by snagging some JSON off the server.

Right now I'm assuming that I should be:
- defining a JSONDataModel for my Grid
- defining some sort of update function for my Grid
- attaching the update to a YAHOO.util.Event (?)
- throwing this event somehow(?)

Sorry for the lameness of these questions, just digging through the documentation. If anyone is willing to help me out, I'd appreciate it greatly. Thanks,

Ian