Trigger validation manually like on cellEditEnded

Posted by: webworx on 27 August 2018, 3:01 am EST

    • Post Options:
    • Link

    Posted 27 August 2018, 3:01 am EST

    Hi,

    we are updating a cell content over a dialog. The cell itself is readonly. Over the collectionView getError we are validating the cell content. Because its not over cellEditEnded, the error is still there. So is there any way to call the validation again?

    Best regards, Asmir

  • Posted 27 August 2018, 6:42 pm EST

    Additional note, its a flexgrid with a collectionview. Its an angular 4+ App. Thanks.

  • Posted 27 August 2018, 10:44 pm EST

    Hi,

    Please use flexGrid’s setCellData() method to update cell content outside flexGrid. It will automatically update the cell validation state.

    Please refer to the following code snippet:-

    let row = 0, col = 2, value = 'new value';
    flexGrid.setCellData(row, col, value);
    

    You may also refer to the following sample which implements the same:-

    https://stackblitz.com/edit/js-gvphr4?file=index.js

    is there any way to call the validation again?

    <<<<<<<<<<<<<

    You may use flexGrid’s invalidate() method to re-render the grid with latest updates.

    flexGrid.invalidate();
    

    ~Sharad

  • Posted 28 August 2018, 1:55 am EST

    Hi Sharad, thats it!

    Thank you very much.

    Best regards, Asmir

Need extra support?

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

Learn More

Forum Channels