Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
How to remove tab key behavior that defaults to Cell Navigation?
posted

Hi,

Fyi, we're currently using Infragistics Ultrawebgrid v10.3 with Service Release 1.

The grids sit on .aspx pages that contains multiple fields and text boxes. Before we migrated to v8.2 back in 2008, the tab key will allow the user to move the the next control in the tab sequence. And since we migrated to v8.2, the tab key is now default to cell navigation. I understand that this is a standard feature. But I was wondering if we can remove this behavior so users can use tab key to move to next control since we can navigate the cells in the grid using arrow keys anyway. I was informed that there are certain property that can be used to accomplish this. If this is true, what would it be?

Thanks!

  • 49378
    posted

    Hi nnaim,

    It has been some time since your post, however in case you still need assistance I would be glad to help.

    You can achieve the desired functionality by handling the clientside KeyDown event of the grid. Here is a sample implementation which, when a grid cell is active, will focus a textbox outside the grid upon pressing Tab:

    function UltraWebGrid1_KeyDownHandler(gridName, cellId, key){

        if (igtbl_getCellById(cellId) != null && key == 9) {
            document.getElementById("TextBox1").focus();

            //return true to cancel the default tab behavior of the grid.
            return true;
        }

    Please note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:

    http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html

    Additional samples demonstrating the features of these grids can be found at:
    http://samples.infragistics.com/aspnet/

    Do not hesitate to contact me if you have any questions.