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

Get count of rows in a grid programatically

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
M S
Top achievements
Rank 1
M S asked on 16 Jul 2010, 05:46 PM
How do I get the count of rows in a grid programatically..
Also consider getting the count of items programatically for a detail grid with name set to "Detail"

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 20 Jul 2010, 02:36 PM
Hello,

The approach depends on a few details on the particular scenario. Could you please answer the following questions, so we can provide you with more to-the-point solution:

  • How do you create your grid, what is the value of the HierarchyLoadMode property?
  • In hierarchy, do you need to have the count of rows only in expanded or in both expanded and collapsed detail tables?
  • How do you populate your grid?
Before, answering these, you could also see if one of those solutions are applicable in your scenario:
RadGrid row count in prerender
Pager item(Getting the total row count section)


Greetings,
Tsvetina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
M S
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or