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
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
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
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
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 @
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
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
-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
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
9 matches
Mail list logo