Author Topic: Paste Column in the Grid Add new Rows  (Read 106 times)

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
Paste Column in the Grid Add new Rows
« on: October 08, 2024, 07:05:29 pm »
Hello Paramvir

I am using paramquery with column paste functionality.

Suppose, the target grid contains 5 Rows only. Whenever I tried to paste more than 5 vertical cells, additional rows were inserted in the grid.
I don't want such behavior. I want the grid to only accept the first 5 cell values and not generate new rows

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Paste Column in the Grid Add new Rows
« Reply #1 on: October 09, 2024, 06:05:21 pm »
In beforeValidate event, check if ui.source == 'paste' then set the ui.addList.length to 0