This is a migrated thread and some comments may be shown as answers.
Radgrid Grouping
1 Answer 58 Views
This is a migrated thread and some comments may be shown as answers.
Dayana Maliyakal
Top achievements
Rank 1
Dayana Maliyakal asked on 22 Feb 2011, 01:15 PM
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

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 25 Feb 2011, 01:36 PM
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!
Asked by
Dayana Maliyakal
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or