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

[Solved] Issue while importing the Excel file.

1 Answer 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Prashanth
Top achievements
Rank 1
Prashanth asked on 03 Jan 2012, 07:44 AM
Hi

I tried to import an Excel file ,for that i used a Telerik upload control, a grid to bind the imported data which is having toolbar button for Save changes and Cancel changes (for batch update). I uploaded the file in the server and reads the data from it then returns it as a Json result i,e.,  return Json(new { Data = products.AsEnumerable<ProductsModels>() }, "text/plain"); .In the view, on Client events of the upload control, i am calling the OnSuccess Javascript and rebinds the Telerik grid with the imported data .The javascript code is as follows

function onSuccess(e) {
      
        var value = "";
      
        var json_data = e.response.Data;
        var grid = $('#grid').data('tGrid');

         grid.dataBind(value);
         grid.dataBind(json_data);
               
     }

Using this function i am able to rebind the grid but when i clicked save changes nothing is happening. Actually it is not considering as an updated data .So how to make the new data as updated data or is there any alternative way to accomplish the same.Please give us a proper guidelines (With an example code will be better for us to understand).

Thanks
Prashanth

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 04 Jan 2012, 02:49 PM
Hi Prashanth,

To be able to help, we will need to get a better view over your exact setup and logic. Please provide a sample project that reproduces the case so we can investigate further.
 
Thank you for your patience and cooperation. 

All the best,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Prashanth
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or