Well I thought the hint was in the using of firefox and its plugin
fireDebug, use the console to type the var name of the grid and you
get to see all methods and properties.
How much more does one need to spell it out, when all the docs are
also on extJS:-)
And the reverse of get is set is it not:-)
On 10/11/07, Azadi Saryev <[EMAIL PROTECTED]> wrote:
> well, that's all good and all, but how about pre-selecting a specific row???
>
> your code "will return record store of the selected row"... how about
> when no row is yet selected???
>
> Azadi
>
>
> Andrew Scott wrote:
> > Dale,
> >
> > Should read my blog more then:-)
> >
> > If you followon from my Grid example, and use the extJS docs you would
> > get the following.
> >
> > var grid = ColdFusion.Grid.getGridObject('NameOfGrid');
> > grid.getSelectionModel().getSelected()
> >
> > Will return the record store of the selected row. btw if you use
> > Firefox and firebug, you can type the following into the console of
> > firebug.
> >
> > grid, which will dump the structure of the grid to get all its
> > properties and methods. And you can drill into the getSelectionModel
> > and see the same for the methods etc for that.
> >
> > but for more info your best bet is go to extJS.com and the info is all
> > there.
> >
> >
> >
> > On 10/11/07, Dale Fraser <[EMAIL PROTECTED]> wrote:
> >
> >> Anyone know how to programmatically select a row in a grid.
> >>
> >>
> >>
> >> Sometimes you want to refresh the grid and then upon refresh select a
> >> specific row.
> >>
> >>
> >>
> >> Regards
> >>
> >> Dale Fraser
> >>
> >>
> >>
> >> http://learncf.com
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290856
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4