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 >> >> >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290852 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4