FlexGrid as a drop target for files

Posted by: seaninglis on 6 November 2025, 6:54 am EST

    • Post Options:
    • Link

    Posted 6 November 2025, 6:54 am EST

    Are there any examples of a wjFlexGrid being used as a drop target for files from the OS?

    I have some custom formatted text files I want to parse and turn into grid entries and I’d like to be able to kick that process off by directly dropping a file onto the grid.

  • Posted 6 November 2025, 9:11 am EST

    Hi Sean Inglis,

    Dropping a text file is not yet officially supported in Flegrid. However, you can handle the ‘dragover’ and ‘drop’ events on the grid’s host element to implement this feature as per your requirements. Please refer to the following sample demonstrating the same - https://stackblitz.com/edit/js-1wqpmgdt?file=index.js

    Please note that the above sample only shows a simple demonstration of how you can extract the text from the text file and set it in the grid. You may need to modify it to make any further validations and modifications to the text before applying it to the grid, if needed.

    Please refer to the attached .txt file that we tested with the above sample.

    Regards

    sample text.zip

  • Posted 6 November 2025, 9:46 am EST

    Perfect for my use thanks.

Need extra support?

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

Learn More

Forum Channels