Flexgrid touch support

Posted by: fpouyez on 27 February 2018, 3:32 am EST

  • Posted 27 February 2018, 3:32 am EST

    Hi,

    We use Wijmo in our Angular application, and we are targeting PCs and tablets.

    We want grids with multi-selection, so we define our grids with [selectionMode]=ListBox. It works well on computers, using the CTRL key to perform a multi-selection.

    But on tablets, the CTRL key is not avalaible, and it seems there is no way to perform the same selection on these devices.

    Is there a way to implement this feature in our application ?

    Have you planned to implement this feature in your roadmap ?

    Thanks for any answer.

    F.Pouyez

  • Posted 27 February 2018, 3:54 pm EST

    Hi,

    You may select multiple rows on click with ListBox mode using following code:

    $scope.init = function (s, e) {
                    
                    s.hostElement.addEventListener("touchstart",function(e){                    
                        var ht= s.hitTest(e);
                        if(ht.cellType==wijmo.grid.CellType.Cell ){                                                                                               
                            e.preventDefault();
                            e.stopImmediatePropagation();
                            s.rows[ht.row].isSelected=!s.rows[ht.row].isSelected;
                        }
                    },true);
                    
                }
    
    

    But, in this case, we would like to know how you would like to edit the cell specially the event.

    ~Manish

  • Posted 4 March 2018, 7:20 pm EST

    Hi,

    we will use this code on our first column (a checkbox column). With these selections, our users may do global actions like suppress these lines by clicking on a button below the grid.

    Any touch somewhere else on the grid will release the selection, as usual, and could put the cell in edition (if supported).

    Thanks

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels