Navigate to cell

Posted by: nilesh_nichal on 23 November 2017, 5:32 pm EST

    • Post Options:
    • Link

    Posted 23 November 2017, 5:32 pm EST

    Hello,

    We have editable grid where on save we show errors on save. When user click on an error we want to navigate to that cell and highlight it if there is error for cell data.

    We have row and cell number data but we are able to navigate to row (using moveCurrentToNext method of collection) but not able to go to cell and hightlight it.

    We are using Wijmo 5 flexgrid and Angular 2.

    Please suggest solution for same.

    Thanks

  • Posted 26 November 2017, 9:34 pm EST

    Hi,

    moveCurrentToNext method would only update the current edited item(row). To move to a particular cell you need to use select method.

    http://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.grid.FlexGrid.Class.html#select

    @ViewChild('grid') grid: WjFlexGrid;
    MoveSelection(col: number, row: number) {
        this.grid.select(new CellRange(row, col, row, col), true);
    }
    

    ~nilay

Need extra support?

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

Learn More

Forum Channels