How to delete 1st row & 1st column in pivot table

I have written the following code which is working on click event but i want when the page is completely loaded,

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""&gt;>
<!-- <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
 --><title>Flexmonster Pivot Table & Charts</title>
 <link href="../assets/css/style.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript" src="flexmonster/flexmonster.js"></script>
<style type="text/css"> 
#fm-grid-view .fm-cell {
border: 0px !important;
<button id="delete" onclick="javascript: deleteRow();">Delete</button>
<div id="pivotContent">
<!-- IF SOMETHING WENT WRONG HTML5 --> <div style="padding: 10px; margin: 10px 0;"> <font color="#DD0000"><b>Something went wrong!</b></font><br/> <br/> If you see this message, it means you have one of the following problems: <ol> <li>You did not extract files from downloaded zip archive. Unzip and copy all files to your application folder.</li> </ol> If you still see this page, <a href="">click here</a> for troubleshooting information. </div> <!-- IF SOMETHING WENT WRONG HTML5 -->
<script type="text/javascript">
//its working
$(".fm-sheet-data-canvas tr:first").remove();
var params = {
filename : "http://localhost:8080/flexdemo/reports/report.xml&#8221",
licenseKey: "Z529-1M1VP2-2M1A-2B3A-1G0E-1738-332G-091E-2U02-1S34-0U",
flexmonster.embedPivotComponent("flexmonster/", "pivotContent", "100%", "500",params,true);

//its not working
function deleteRow(){
$(document).ready(function() {
$(‘.fm-sheet-data-canvas tr:first’).remove();

i want the screen like in the attachment when the page is loaded completely,

Attachments: demo.jpg

2 answers

Dmytro Zvazhii Staff September 1, 2016

Hi Manoranjan,
Thank you for your question. It seems that “showHeaders” report property can solve your problem. It is set with true by default. If you set it false the first row and column will not be shown. Here is an example of how you can do that Let us know if it helps you.
Best regards,

Manoranjan September 2, 2016

Thanks Dmytro…….

Please login or Register to Submit Answer