angular-ui/ui-grid

problem with importing csv files with different headers

Open

#4,628 创建于 2015年11月3日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (5,395 star) (2,496 fork)batch import
good first issuegrid-importertype: enhancement

描述

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.

贡献者指南