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

Populate Data to Kendo Grid from Kendo Upload

5 Answers 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Renan
Top achievements
Rank 2
Renan asked on 26 May 2014, 07:20 AM
Is there way or a sample code that can populate the data to grid from the upload. Here is the scenario.

I have a Kendo Upload and it is returning a Model. I want that model to populate the Grid after Save method of Kendo Upload. See the attached.

Thanks,
RLN

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 26 May 2014, 11:20 AM
Hello Renan,


We have a Code Library, which demonstrates this scenario in action. You could find it on the following page.

I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Renan
Top achievements
Rank 2
answered on 26 May 2014, 11:56 PM
Thanks for the quick reply. This is exactly what I'm looking for.
RLN
0
Dimiter Madjarov
Telerik team
answered on 27 May 2014, 07:24 AM
Hi Renan,


I am glad the information was helpful. Do not hesitate to contact us again if further issues arise.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Renan
Top achievements
Rank 2
answered on 27 May 2014, 09:44 AM
Hi Dimiter - Another scenario. The thing here is that i am not saving the uploaded file on the database, instead, i am parsing it and it returns a json result list. What I want to happen is that, i want the json result that was called in Upload Save method and pass it on the grid datasource. 

Is there a way to store or save the json result came from the save function of kendo upload?

Thanks
RLN
0
Dimiter Madjarov
Telerik team
answered on 27 May 2014, 12:32 PM
Hi Renan,


I am not sure that I completely understand the current scenario. Nevertheless, you could take a look at the following approach, which demonstrates how to return a JSON result as a metadata from the Upload widget save handler. If it suits the current case, you could return the Grid contents as JSON and then use the success event handler in order to set is a data for the Grid's dataSource.

I hope this information helps.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Renan
Top achievements
Rank 2
Answers by
Dimiter Madjarov
Telerik team
Renan
Top achievements
Rank 2
Share this question
or