Posted 7 October 2021, 4:54 pm EST
Hi,Is there any way we can restrict the user drag and fill functionality in SpreadJS only to row direction (i.e., disable it in column direction)? Looks like there's no such apt option available currently.
Thanks
Forums Home / Spread / DevChannel Topics
Posted by: namratha.bejgam on 7 October 2021, 4:54 pm EST
Posted 7 October 2021, 4:54 pm EST
Hi,Replied 10 October 2021, 6:33 pm EST
Hi,
sheet.bind(GC.Spread.Sheets.Events.DragFillBlock, (e, args) => {
if (
args.fillDirection === GC.Spread.Sheets.Fill.FillDirection.right ||
args.fillDirection === GC.Spread.Sheets.Fill.FillDirection.left
)
args.cancel = true;
});
Replied 12 October 2021, 4:56 pm EST
Hi,
sheet.bind(GC.Spread.Sheets.Events.ClipboardPasting, (e, args) => {
if (args.cellRange.colCount > 1) args.cancel = true;
});