This question is locked. New answers and comments are not allowed.
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
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