Author Topic: Batch editing  (Read 1616 times)

sshede

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 41
    • View Profile
Batch editing
« on: March 15, 2021, 12:52:07 pm »
Hi

i am use Batch editing exmaple.
i edit cell in 1 and 2nd row.
but i want to 1 row comment.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Batch editing
« Reply #1 on: March 15, 2021, 03:09:50 pm »
Batch editing and comments work independent of each other and can be used together.

Please elaborate if you are facing any issue.

sshede

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Batch editing
« Reply #2 on: March 15, 2021, 03:16:49 pm »
grid.commit({ type: 'update', rows: gridChangesTamp.updateList});   this is working

grid.commit({ type: 'update', rows: gridChangesTamp.updateList[1]});
but i trying 1 row comment but not working

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Batch editing
« Reply #3 on: March 16, 2021, 11:03:36 am »
This is used to commit all the updated rows:

Code: [Select]
grid.commit({
  type: 'update',
  rows: changes.updateList
})

This one is used to commit only one of the updated rows:

Code: [Select]
grid.commit({
  type: 'update',
  rows: [ changes.updateList[ indx of the row ] ]
})

----------------------------------

Cell comments have different API. Comments are added with grid.Range(range).val( comment value );

Example for dynamically adding comments: https://paramquery.com/pro/demos/comments
« Last Edit: March 16, 2021, 11:09:41 am by paramvir »