I think the problem is that I'm doing a refresh followed by a grid.

And perhaps the grid hasn't finished refreshing when i'm doing the select.

Is there some event that you can add to the refresh such as an onSuccess or
onComplete to then select 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 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 @ 
{cfwebroot}/CFIDE/scripts/ajax/ext/docs/output/Ext.grid.RowSelectionModel.ht
ml


Azadi Saryev


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
>
>  
>
> 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:290890
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to