Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
Upload data to igGrid using fileUpload
posted

Hi,

I am trying to implement a functionality in which i will be uploading an excel sheet, server will go through the sheet, create a List<List<Object>>, where every List<Object> will represent a row. Idea was, server will return this, and I will parse this at client side, and then i will use 

$('#grid1').igGridUpdating('addRow',myObbject); 

But, i am not able to retrieve any server response apart from retrieving information, whether FileUpload is successful or not. How can i read the server response. I tried following, but this also did not help


$('#grid1').igUpload('getFileInfoData');

My client side in JavaScript, and server is in Java, I am hitting an endpoint using uploadUrl. 

Any other idea for implementing the requirement (Upload data to Grid from file) is also welcomde


Thanks 
  • 250
    posted

    For a workaround, what i am doing is, on iguploadfileuploaded, i am calling the server again, and fetching the updated row object from server and then calling the    $("#grid1").igGrid("widget").igGridUpdating('addRow',rows); for updtaing the rows. It is working fine