jQWidgets Forums

jQuery UI Widgets Forums Grid Cell Tab order of Editable row in Grid

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • yatinpatel
    Participant

    Hi,

    I am struggling with Tab order in Grid having one Checkbox column. On Tab out, I need to move focus from “ABC” column to “XYZ” Checkbox column skipping 6 columns which is lying in between these two columns.

    Below code works fine with other columns of type numeric input. However, focus gets lost in case of Checkbox column

    handleTabNavigation: function (event)
         {
                var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
                if (key == 9)
                {
                    if (CurrentCellEdit.Column == "ABC")
                    {
                        $('#jqxgrid').jqxGrid('selectcell', selectedrowindex, 'XYZ');
                        $('#jqxgrid').jqxGrid('begincelledit', selectedrowindex, 'XYZ');
                        return true;
                    }
                }
       }
    
    $("#jqxgrid").jqxGrid(
                {
                    width: '100%',
                    height: '675',
                    columnsheight: 35,
                    source: dataAdapter,
                    showtoolbar: true,
                    toolbarheight: 40,
                    editable: false,
                    enabletooltips: true,
                    groupsexpandedbydefault: true,
                    editmode: 'selectedcell',
                    columnsresize: true,
                    showgroupsheader: true,
                    handlekeyboardnavigation: this.handleTabNavigation,
    
    .........................

    Peter Stoev
    Keymaster

    Hi yatinpatel,

    Your code overrides the Grid’s built-in Tab key navigation. In addition, we are not aware what CurrentCellEdit.Column is.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.