EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 16, 2024, 05:12:50 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
number of rows in datagrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: number of rows in datagrid (Read 8553 times)
wymak
Newbie
Posts: 26
number of rows in datagrid
«
on:
January 21, 2013, 07:43:37 AM »
Hi expert;
The easyui document mentioned that the 'data' property of the datagrid is an array object, however, I cannot get the size of this data array by issuing:
var arr = $('#dg').datagrid('options').data;
alert(arr.length);
How can I achieve the goal?
thx
Logged
mzeddd
Full Member
Posts: 223
Re: number of rows in datagrid
«
Reply #1 on:
January 21, 2013, 01:02:17 PM »
This should work
Code:
var arr = $('#dg').datagrid('getRows');
alert(arr.length);
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...