Welcome Guest Search | Active Topics | Sign In | Register

Edit cell without hitting enter Options
GMM
Posted: Thursday, October 18, 2012 11:57:19 AM
Rank: Newbie
Groups: Member

Joined: 10/18/2012
Posts: 5
Is there a way to have the cell editable automatically as soon as you navigate to them using the keyboard navigation?
eo_support
Posted: Thursday, October 18, 2012 12:49:55 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Yes. You would use something like this:

Code: HTML/ASPX
<eo:Grid ClientSideOnCellSelected="on_cell_selected_handler" ....>
 .....
</eo:Grid>


The above code handles the Grid's ClientSideOnCellSelected event. The handler would be something like this:

Code: JavaScript
function on_cell_selected_handler(grid)
{
    //Get the selected cell
    var cell = grid.getSelectedCell();
    if (cell)
    {
        //Put the selected cell into edit mode
        setTimeout(function()
        {
            grid.editCell(cell.getItemIndex(), cell.getColIndex(), true);
        }, 10);
    }
}


The above code uses our client side API. If you have not used our client side API before, you will want to take a look of this topic:

http://www.essentialobjects.com/doc/1/clientapi_howto.aspx

Hope this helps. Please feel free to let us know if you have any more questions.

Thanks!
GMM
Posted: Thursday, October 18, 2012 1:39:52 PM
Rank: Newbie
Groups: Member

Joined: 10/18/2012
Posts: 5
Thanks so much!
eo_support
Posted: Thursday, October 18, 2012 1:42:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
You are welcome. Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.