Currently implementing Angular UI Grid for file imports.
Here is my configuration:
enableGridMenu: true,
importerDataAddCallback: function (grid, newObjects) {
Encountering an error when trying to import non-CSV files:
uncaught exception: UNEXPECTED_END_OF_RECORD at char...
Seeking a way to display an alert box if import fails.
Came across the uiGridImporterService which contains a method called alertError(grid, headerRow).
Unsure if this is the solution I need.
How can I implement an Alert in case of import failure?
Additionally, is there a way to verify that only .csv files are being imported?