On 01/12/06, Christof Donat <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > Controller set of methods is returned..
> >
> > $('#grid').grid().data(data).drig().show()
> > $('#grid').grid().scrollToRow(6).drig().css("border", "1px")
> >
> > A controller object is returned..
> >
> > var grid = null
> > $("grid").grid({
> > data: data,
> > onComplete: function(controller) { grid = controller }
> > })
> > grid.srollToRow(6)
> >
> > What is best practice?
>
> How about the Idea to have a jQuery-function that returns the controller
> object:
>
> $('#grid').grid({data:data}).show().gridController().scrollToRow(6);
An perhaps have a method that returns you back to jQuery object?
Calling it 'end' (or any other jQuery method name) may be confusing,
something like 'endGrid'.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/