I have a Radspreadsheet with 13 columns. I need to create a datatable with the grid content and send it to a stored procedure. When I paste 8000+ rows in the grid everything works fine on local host, but it doesn't seem to be able to create the datatable when I deploy on the server. Could it be that the data size is too big to be sent to the server? Is there anyway to overcome this problem?
I have two javascript methods: one to automatically save the grid content after pasting data in the grid, and one to format grid content as text.
Here are the two JS methods:
function OnClientChange(sender, eventArgs) {
//call save automatically when posting any data in the grid
var sheet = $find('<%=RadSpreadsheet1.ClientID%>');
sheet.save();
}
function onclientpaste(sender, args) {
//format data as text
var clipboardData = args.get_clipboardContent().data;
for (var i = 0; i < clipboardData.length; i++) {
for (var j = 0; j < clipboardData[i].length; j++) {
var cellData = clipboardData[i][j];
cellData.format = "@"
}
}
}
Here is the Radspreadsheet code:
<telerik:RadSpreadsheet runat="server" ID="RadSpreadsheet1" OnClientChange="OnClientChange" onclientpaste="onclientpaste">