This is a migrated thread and some comments may be shown as answers.

Import CSV file and loaded in a kerndo grid dynamically

1 Answer 335 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Priyanka
Top achievements
Rank 1
Priyanka asked on 09 Jun 2017, 06:15 PM
I'm new & I'm hoping there's some sample code to help jumpstart my work.  I need to upload a CSV & place it in a KendoGrid using MVC. If possible, from the Select button, and not show the input Text box, and not show the Remove option, since it should place the file contents straight into the grid & then delete the file.  I didn't see anything in the Code Library showing how to upload a CSV & place it in a grid, but it seems like someone must have done this before me.  Any guidance is appreciated.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 13 Jun 2017, 07:50 AM
Hello Priyanka,

The Grid is managing the data using its dataSource, and the dataSource can receive data only in JSON, JSONP, or XML:

http://docs.telerik.com/kendo-ui/framework/datasource/overview

We had a similar request in the past, but it was declined, as in this scenario I suggest converting the data from CSV to one of the supported formats:

http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback/suggestions/11324859-datasource-in-csv-format-for-grid

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
Tags
Grid
Asked by
Priyanka
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or