Count of detail tables in radgrid

5 posts, 0 answers
  1. Priya
    Priya avatar
    144 posts
    Member since:
    Jul 2008

    Posted 21 May 2009 Link to this post

    Hello,
    I need to get the count of details tables added in the radgrid..not the count of row
    thanks..
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 May 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Irving
    Irving avatar
    12 posts
    Member since:
    Jan 2014

    Posted 25 Sep 2015 in reply to Princy Link to this post

    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

  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 29 Sep 2015 Link to this post

    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
  6. Irving
    Irving avatar
    12 posts
    Member since:
    Jan 2014

    Posted 01 Oct 2015 in reply to Viktor Tachev Link to this post

    solved! Thank you Viktor
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017