Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142230 | Jan 23,2019 03:37 PM UTC | Jan 25,2019 11:44 AM UTC | jQuery | 3 |
![]() |
Tags: ejSpreadSheet |
Value 1 |
Value 2 |
Value 3 |
Value 4 |
Value 5 |
Value 6 |
Value 1 |
Value 2 |
Value 5 |
Value 6 |
Value 1 | 2 | |||||
Value 2 | 1 | 1 | ||||
Value 3 | 1 | 1 | 1 | 1 | ||
Value 4 | 1 | 1 | ||||
Value 5 | 1 | 1 | 1 | |||
Value 6 | 1 | 1 | 1 | 1 |
Value 1 | 2 | |||||
Value 2 | 1 | 1 | ||||
Value 4 | 1 | 1 | ||||
Value 5 | 1 | 1 | 1 | |||
Value 6 | 1 | 1 | 1 | 1 |
$(function () {
$("#Spreadsheet").ejSpreadsheet({
sheets: [
{ dataSource: defaultData, showHeader: false }
],
columnWidth: 90,
// cellSave: "delClick"
actionComplete: "delClick"
});
});
function delClick(args) {
var excelObj = $("#Spreadsheet").data("ejSpreadsheet");
if (args.reqType == "edit") { // for cell edit operation
if (args.cValue.length === 0 && args.pValue.length > 0)
{
// condition for current and previous cell value length
excelObj.deleteEntireRow(args.rowIndex, args.rowIndex); // to delete the row
}
}
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.