Author Topic: Get data in cell  (Read 1774 times)

atmaneuler

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 33
    • View Profile
Get data in cell
« on: January 06, 2021, 08:48:30 am »
I want to get and check the data of 1 cell is empty or not?
Expected: Use console show data of cell

atmaneuler

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Get data in cell
« Reply #1 on: January 06, 2021, 09:26:26 am »
Add expected: If it is empty, clicking on the cell will show the word "N / A", if you click on another cell, the previous cell will lose the word "N / A".

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Get data in cell
« Reply #2 on: January 06, 2021, 11:46:30 pm »
Empty cell can be checked as

Code: [Select]
var val = ui.rowData[ui.dataIndx];
if (val === "" || val == null) {

}

https://stackblitz.com/edit/paramquery-demo-empty-cell?file=index.js

atmaneuler

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Get data in cell
« Reply #3 on: January 07, 2021, 09:22:32 am »
Thanks admin ^_^