I am getting frustrated that I cannot get this to work, and sorry for
posting this in cf-flash as well, but maybe you all can help me.

I am simply trying to set focus to a given row / column inside a data
grid that I am dynamically adding rows too.  I found an example on
http://www.franciswscott.com/blog/ that showed him doing this:

nameList.focusedCell = {columnIndex:2,
itemIndex:nameList.selectedIndex};

This works on his site, but not on mine.  Is it possible that I cannot
set focus to dynamically added rows?  I am adding them like this:

<cfsavecontent variable="addGLItem">
        var rowID = 0;
        var item;
        GridData.insertRow(glItemize);
        rowID = glItemize.length;
        glItemize.dataProvider.editField(rowID-1, 'account',
glData.selectedItem['ACCOUNT']);
        glItemize.dataProvider.editField(rowID-1, 'description',
glData.selectedItem['DESCRIPTION']);
        accordian.selectedIndex=0;
</cfsavecontent>

Any suggestions on how I can set the focus to a column named 'AMOUNT' at
the end of addGLItem?

Chris Peterson

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:37/messageid:2963
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:37
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to