angular-ui/ui-grid

problem with importing csv files with different headers

Open

#4,628 opened on Nov 3, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (2,496 forks)batch import
good first issuegrid-importertype: enhancement

Repository metrics

Stars
 (5,395 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I am using the import feature of the ui-grid. the first time I import the csv file, every thing works fine. The headers of the csv file are made the headers of the ui-grid table. But, when I try to import a different csv file with a different set of headers, I am not able to see any data in the grid.e.g First file "Name","Gender","Company" "John Smith","male","TestIcon" .I get a proper table in this case Second file "First name","Last name","Country" "John","Doe","USA" Nothing is shown in this case. I even tried re-assigning the columnDefs to an empty array before import but nothing seems to work.

Contributor guide