Re: CFGRID Select Row

2007-10-12 Thread Azadi Saryev
to the objects' page that you posted here. Regards Dale Fraser http://learncf.com -Original Message- From: Azadi Saryev [mailto:[EMAIL PROTECTED] Sent: Thursday, 11 October 2007 10:40 PM To: CF-Talk Subject: Re: CFGRID Select Row simple as everything ajax seems to be: refreshgrid

Re: CFGRID Select Row

2007-10-11 Thread Azadi Saryev
i am working on the same issue... will post my findings [if any...] later... Azadi Dale Fraser 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

Re: CFGRID Select Row

2007-10-11 Thread Andrew Scott
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

Re: CFGRID Select Row

2007-10-11 Thread Azadi Saryev
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

Re: CFGRID Select Row

2007-10-11 Thread Azadi Saryev
simple as everything ajax seems to be: refreshgrid = function(){ ColdFusion.Grid.getGridObject('yourgridname').getSelectionModel().selectRow(rownumber); } NOTE: rownumbers seem to be 0-based you can also use: selectRows() selectRange() clearSelections() and a lot more... more info @

Re: CFGRID Select Row

2007-10-11 Thread Andrew Scott
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

RE: CFGRID Select Row

2007-10-11 Thread Dale Fraser
Thanks, That seems to select, but not highlight the row. Regards Dale Fraser http://learncf.com -Original Message- From: Azadi Saryev [mailto:[EMAIL PROTECTED] Sent: Thursday, 11 October 2007 10:40 PM To: CF-Talk Subject: Re: CFGRID Select Row simple as everything ajax seems

RE: CFGRID Select Row

2007-10-11 Thread Dale Fraser
-Original Message- From: Azadi Saryev [mailto:[EMAIL PROTECTED] Sent: Thursday, 11 October 2007 10:40 PM To: CF-Talk Subject: Re: CFGRID Select Row simple as everything ajax seems to be: refreshgrid = function(){ ColdFusion.Grid.getGridObject('yourgridname').getSelectionModel

RE: CFGRID Select Row

2007-10-11 Thread Dale Fraser
posted here. Regards Dale Fraser http://learncf.com -Original Message- From: Azadi Saryev [mailto:[EMAIL PROTECTED] Sent: Thursday, 11 October 2007 10:40 PM To: CF-Talk Subject: Re: CFGRID Select Row simple as everything ajax seems to be: refreshgrid = function