Posted 4 June 2020, 1:49 am EST
Hi Deepak,
I am sorry but I do not understand your issue properly. Can you please explain what are you referring to by this line:
and its working fine but we its work on every cell focus where I didn’t change any cell value.
It seems that your issue is that the commitEdit method works for each cell regardless of whether you have edited it or not. But, if you have not edited any cell and the commitEdit method is called, then this is not an issue because the data will not be updated because you are not editing anything. Infact, the commitEdit method checks whether an item is being edited and then only proceeds to commit it.
Regarding the word wrap, just add a keydown event listener and get the currently selected column and toggle is wordWrap property. Please refer to the sample link below:
https://stackblitz.com/edit/js-3p129f
~regards