Author Topic: Grid Rows count  (Read 2477 times)

Fraan83

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 9
    • View Profile
Grid Rows count
« on: September 26, 2019, 03:35:27 pm »
Dear support,
I have read the API's page, but I didn't understand.
How can i get gridview row count?
I have tried the below code but it give insufficient result.

Code: [Select]
    var data = $("div#grid").pqGrid('option', 'dataModel.data').length;
               
             $("#label").val(toString(data_no))

The result is NaN.
Thank you.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Grid Rows count
« Reply #1 on: September 26, 2019, 04:28:06 pm »
data length is assigned to data variable but data_no is used in 2nd line.