This is a migrated thread and some comments may be shown as answers.

Count Rows Grid

3 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hugo
Top achievements
Rank 1
Hugo asked on 30 Mar 2012, 07:01 PM
Hi team,

i need to know the count rows that have a grid, but in the client with JavaScript.

3 Answers, 1 is accepted

Sort by
0
SamJ
Top achievements
Rank 1
answered on 30 Mar 2012, 08:41 PM
It seems like the get_dataItems() property is for you:
function MyGetGridRowsCountFunction()
{
    var grid = $find("<%= RadGrid1.ClientID %>");
    var rowsCount = grid.get_masterTableView().get_dataItems().length;
}

But if you have paging enables, this will return the count of the items on the current page.

SamJ
0
Hugo
Top achievements
Rank 1
answered on 01 Apr 2012, 07:35 AM
Hi Samj thank so much,

other question, using Javascript you know how to extract the data of the cell without using event.

rewards.
0
Hugo
Top achievements
Rank 1
answered on 01 Apr 2012, 09:28 AM
Hi Samj!!!!

i have the answer in the url:

http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-getcellbycolumnuniquename.html

Thank for you help.

Rewards.
Tags
Grid
Asked by
Hugo
Top achievements
Rank 1
Answers by
SamJ
Top achievements
Rank 1
Hugo
Top achievements
Rank 1
Share this question
or