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

Count of detail tables in radgrid

4 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Priya
Top achievements
Rank 1
Priya asked on 22 May 2009, 04:31 AM
Hello,
I need to get the count of details tables added in the radgrid..not the count of row
thanks..

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 May 2009, 07:26 AM
Hello Priya,

If you have several detail tables at a level then you can get the count of the detailtables in the grid using the following code:
c#:
int count = RadGrid1.MasterTableView.DetailTables.Count; 

If you want to check the count of the detailtables at each level of the grid, then you would have to try the following code:
c#:
 int count1 = RadGrid1.MasterTableView.DetailTables[0].DetailTables.Count; 
 int count2 = RadGrid1.MasterTableView.DetailTables[0].DetailTables[0].DetailTables.Count; 

Thanks
Princy.
0
Irving
Top achievements
Rank 2
answered on 25 Sep 2015, 08:54 AM

Hi Princy,

 

How do I get the number of each item inside the details table and bind it  in the column, like the example from this photo,

 

Thanks

0
Viktor Tachev
Telerik team
answered on 29 Sep 2015, 01:36 PM
Hello,

I am not completely sure what is your requirement. However, if you would like to get the number of items in the detail table you can use aggregates. Check out the following article for additional information.


You should set the ShowFooter property of the GridTableView to true. In addition you should set the Aggregate property for one of the columns to Count.

Regards,
Viktor Tachev
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Irving
Top achievements
Rank 2
answered on 02 Oct 2015, 03:27 AM
solved! Thank you Viktor
Tags
Grid
Asked by
Priya
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Irving
Top achievements
Rank 2
Viktor Tachev
Telerik team
Share this question
or