Import Excel into FlexGrid
In This Topic
This section shows how to call the Web API service project through client application and add import function to enable importing Excel data into FlexGrid control.
Step 1: Call the Service
Step 2: Run the Client Project
The following image shows how the FlexGrid appears after completing the steps above:
Step 1: Call the Service
Complete the following steps to call the Web API service.
- Add C1 Web API Client JavaScript file and its reference to your MVC or HTML project (For further details refer to C1 Web API Client JavaScript) to the project.
- Add import functionality, using Client JavaScript Helper, which will be triggered on button click event.
- Provide an input control, for example button, to initiate import request in client application.
Back to Top
Step 2: Run the Client Project
MVC Application
- Click Build | Build Solution to build the project.
- Press F5 to run the project.
HTML Application
- Save your HTML file and open it in a browser.
A button to select file to be imported appears along with the control, in the output. Use this button to import data from the desired file into the control.
Explore detailed demo samples of import service for MVC and Wijmo5 FlexGrid control in:
Back to Top