This question is locked. New answers and comments are not allowed.
Hello Telerik Team!
First, thanks for the hard these controls are awesome!
My question is very simple, I guess, but I am not finding a straight answer.
I have rad grid that must be loaded already grouped by two fields.
I created it with
Everything with this part works ok, but the fact is, I need to sum some columns , count some others and show them at the group header (every group must have information of what's collapsed.
So you can imagine my grid like this
-ORDERID 1 (value : 50 quantity:12 <-- this is the aggregated info)
--PRODUCTID 678
----under order and product goes the data
----itemID 99 - value 20 quantity 8
----itemID 98 - value 30 quantity 4
-ORDERID 2 (value : 88 quantity: 4 <-- this is the aggregated info)
--PRODUCTID 677
----under order and product goes the data
----itemID 65 - value 77 quantity 3
----itemID 66 - value 11 quantity 1
What is highlited in blod (I mean, the aggregated info) does not works when the component is first loaded. if I remove the grouping and do this manually (by going to the grid, grabbing the column and putting it into the group header) then it works. What am I missing when constructing this?
this is built using data columns aggregated functions.
Any suggestions?
First, thanks for the hard these controls are awesome!
My question is very simple, I guess, but I am not finding a straight answer.
I have rad grid that must be loaded already grouped by two fields.
I created it with
<
telerik:GroupDescriptor Member="OrderID" SortDirection="Ascending" DisplayContent
="Order">
and
<
telerik:GroupDescriptor Member="ProductID" SortDirection="Ascending" DisplayContent
="Order">
Everything with this part works ok, but the fact is, I need to sum some columns , count some others and show them at the group header (every group must have information of what's collapsed.
So you can imagine my grid like this
-ORDERID 1 (value : 50 quantity:12 <-- this is the aggregated info)
--PRODUCTID 678
----under order and product goes the data
----itemID 99 - value 20 quantity 8
----itemID 98 - value 30 quantity 4
-ORDERID 2 (value : 88 quantity: 4 <-- this is the aggregated info)
--PRODUCTID 677
----under order and product goes the data
----itemID 65 - value 77 quantity 3
----itemID 66 - value 11 quantity 1
What is highlited in blod (I mean, the aggregated info) does not works when the component is first loaded. if I remove the grouping and do this manually (by going to the grid, grabbing the column and putting it into the group header) then it works. What am I missing when constructing this?
this is built using data columns aggregated functions.
<telerik:GridViewDataColumn.AggregateFunctions
>
<telerik:SumFunction Caption
="Quantity: " />
</telerik:GridViewDataColumn.AggregateFunctions
>
<telerik:GridViewDataColumn.AggregateFunctions
>
<telerik:SumFunction Caption
="Value: " />
</telerik:GridViewDataColumn.AggregateFunctions
>
Any suggestions?