On 20-Nov-06, at 11:31 AM, Igor Foox wrote:
> Hi, > > I'd like to use an AjaxGrid to display some tabular information > instead of brewing my own widget, but I'm having trouble figuring > out whether it can do what I want, and how. > > What I'd like to do is have a page with a selection box and an > AjaxGrid. The selection box gets populated dynamically through > AJAX, and I'd like the AjaxGrid to be redisplayed whenever > a user selects an option from the selection box. For this I need to > somehow pass a parameter to my json refresh method that supplies > the data to the AjaxGrid. > > Is it possible to somehow pass a parameter like this? I've seen how > you can set a parameter in the refresh url in the constructor for > the AjaxGrid, but that's not really useful for me here, since I > don't know the parameter value until the user selects an option. So after a whole bunch of poking around I figured it out, and I'll probably be writing it up. Is there any particular place that I can submit a tutorial on how to use AjaxGrid to the docs? And also another related question about AjaxGrid. How do I set rows to be a link, or at the very least hang an 'onclick' action on them? There seems to be something possible with the 'actions' parameter to the grid, but it's not trivial to figure out from the code, and I'm wondering if its use is documented somewhere. Thanks, Igor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

