When I click on several buttons like Bold, Italic, Underline, Strikeout, add sheet my web page reloads.
<script src="mylocalpath/ej2.min.js"></script>
<link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.3.14/material.css" />
<link rel='nofollow' href="http://cdn.syncfusion.com/ej2/ej2-spreadsheet/styles/material.css" rel="stylesheet" type="text/css" />
var spreadsheet = new ej.spreadsheet.Spreadsheet({
sheets: sheet,
columns: clm,
//allowConditionalFormat :false,
allowScrolling: true,
scrollSettings: { isFinite: true, enableVirtualization: false },
saveUrl: serviceUrl4 + "ExcelSave",
});
spreadsheet.appendTo('#Spreadsheet');
this is the code I used to bind data in excel.
|
<script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js" type="text/javascript"></script>
<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" rel="stylesheet">
<link rel='nofollow' href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
|
Hi
I updated the sample here
https://stackblitz.com/edit/cevmj1-xel5sc?file=index.html
you can see the page reloading on several button click.
and also attached a sample project
Thanks for the reply
<form id="form1" onsubmit="return false">
</form>
worked for me. Its not reloading now.