ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: sshede on March 15, 2021, 12:52:07 pm

Title: Batch editing
Post by: sshede 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.

Title: Re: Batch editing
Post by: paramvir 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.
Title: Re: Batch editing
Post by: sshede 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
Title: Re: Batch editing
Post by: paramvir 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