Author Topic: About the addRow method.  (Read 1437 times)

qbsoft

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 7
    • View Profile
About the addRow method.
« on: January 28, 2021, 05:58:28 pm »
Hello

I have a question about the addRow method.



If you look at the attached screenshot, the first column (not the check box) is editable: undefined.
So it can't be modified.

What I want is that the first column can also be modified in the row created through the addRow method.
The other row should still be non-modifiable.

What should I do?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: About the addRow method.
« Reply #1 on: January 28, 2021, 09:12:04 pm »
1. pass checkEditable: false to addRow method.

https://paramquery.com/pro/api#method-addRow

2. Conditional or specific cells editability can be defined by implementing editable callbacks.

https://paramquery.com/pro/api#option-editable

https://paramquery.com/pro/api#option-column-editable

qbsoft

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: About the addRow method.
« Reply #2 on: January 29, 2021, 10:17:55 am »
Thank you.  :)

I implemented what I wanted using 'editable callback function'.