Radgrid Grouping

2 posts, 0 answers
  1. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 22 Feb 2011 Link to this post

    Hi,
      I want to get radgrid grouping and I got a link like below.
    http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/groupfooter/defaultcs.aspx
    But I actually want to get Total Price as next row instead of seperate column in the above example.Kindly giev me the reply

    Dayana M.T
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 25 Feb 2011 Link to this post

    Hello Dayana,

    In the example, there is a column Total Price. This columns shows (Unit Price) * (Units in Stock) for each one of the records.
    And after each group has a row that contains Total Price, this Total Price is equal to sum of all Unit Price for the records in this group.

    If you want to show Total Price from the last column into an extra row for each data item you can do this in the NastedViewTemplate. You can set HierarchyDefaultExpanded="true" in the MasterTableView  declaration. And you can hide expand/collapse button using this code:
    protected void RadGrid1_PreRender(object sender, EventArgs e)
    {    
        RadGrid1.MasterTableView.GetColumn("ExpandColumn").Display = false;
    }

    Kind regards,
    Vasil
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top