Following this documentation article:
http://www.telerik.com/help/aspnet-ajax/grdtotalsingridfooters.html
I've gotten the intuitive way to work, by just setting the columns Aggregate value, and I see that value in the footer.
The only way I see to programmatically change this value is to modify one of the cell values, in my case, Cell(5).
When I tried accessing the aggregated value through using the Column Name as the ColumnUniqueName parameter to the Item collection with the syntax:
item("AggregatedColumnName").Text
I received the following error:
Referenced object has a value of 'Nothing'
I believe I have the correct ColumnUniqueName, because I am using the same value I get from the syntax:
RadGrid3.Columns(2).UniqueName
Is the only way to reference this Aggregated value, to use the cell index, or am I going about this the wrong way. I see in the documentation that there is a programmatic way to go about summing the values to display in the footer, but I would like to utilize the efficiency of the Aggregate value, while also being able to define what text is inserted into the footer.
Thank you,
.:edit:.
Interesting development. The UniqueColumnName I was trying to reference the value by was the default value column1, as soon as I changed that to something else, I was able to reference the summed value by the UniqueColumnName. So now the question becomes, why did the default columnuniquename not work, but the modified value work?
http://www.telerik.com/help/aspnet-ajax/grdtotalsingridfooters.html
I've gotten the intuitive way to work, by just setting the columns Aggregate value, and I see that value in the footer.
The only way I see to programmatically change this value is to modify one of the cell values, in my case, Cell(5).
When I tried accessing the aggregated value through using the Column Name as the ColumnUniqueName parameter to the Item collection with the syntax:
item("AggregatedColumnName").Text
I received the following error:
Referenced object has a value of 'Nothing'
I believe I have the correct ColumnUniqueName, because I am using the same value I get from the syntax:
RadGrid3.Columns(2).UniqueName
Is the only way to reference this Aggregated value, to use the cell index, or am I going about this the wrong way. I see in the documentation that there is a programmatic way to go about summing the values to display in the footer, but I would like to utilize the efficiency of the Aggregate value, while also being able to define what text is inserted into the footer.
Thank you,
.:edit:.
Interesting development. The UniqueColumnName I was trying to reference the value by was the default value column1, as soon as I changed that to something else, I was able to reference the summed value by the UniqueColumnName. So now the question becomes, why did the default columnuniquename not work, but the modified value work?