Base solution for your next web application
Open Closed

How to provide import functionality ? #1681


User avatar
0
omkarchoudhari created

I want to be able to imports records from csv file into grid. I have tried using ui-grid-importer , but i cannot inject it into my controllers scope. it gives me injector error.

How can i use ui-grid importer, or any other approach for the grid ?


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    I hadn't try it before with ui-grid. Even I don't know if it supports that. But, anyway, if it gives an inject error, you probably missed to add module to your application. ui-grid requires to add some additional modues for some functionality. For example, for pagination, we added this: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/App/app.js#L8">https://github.com/aspnetzero/aspnet-ze ... /app.js#L8</a>