Wijmo UI for the Web
Default Selection

The wijgrid widget allows users to change the default selected cell by using the addRange method that allows adding a cell range to the current selection. By default, the selected cell in wijgrid is 0,0.

In the example below, the script changes the selected cell to 1,1, and selectionMode to singleCell.

Script
Copy Code
<script type="text/javascript">
    $(document).ready(function () {
        $('#wijgrid').wijgrid({
                        data: [
                { User_ID: '01', User_FirstName: 'Henry', User_LastName: 'Holt' },
                { User_ID: '02', User_FirstName: 'Mathew', User_LastName: 'McDonald' },
                { User_ID: '03', User_FirstName: 'Crystal', User_LastName: 'Castillo ' },
                { User_ID: '04', User_FirstName: 'Oliver', User_LastName: 'Schwartz ' },
                { User_ID: '05', User_FirstName: 'Betsy', User_LastName: 'Baldwin ' },
                { User_ID: '06', User_FirstName: 'Felix', User_LastName: 'Ford ' }
            ],
            selectionMode: 'singleCell'
        });

        // Cell (1, 1) is selected
        $('#wijgrid').wijgrid('selection').addRange(1, 1, 1, 1);

       
    });
</script>