Footer Aggregate Text

3 posts, 0 answers
  1. Jason Divis
    Jason Divis avatar
    8 posts
    Member since:
    Feb 2010

    Posted 26 Feb 2010 Link to this post

    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?
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 01 Mar 2010 Link to this post

    Hello Jason,

    Can you please verify that you are using the latest version 2009.3.1314 of RadControls for ASP.NET AJAX in your project and reference the respective GridFooterItem cell by replacing the "AggregatedColumnName" part with the actual UniqueName value of the column?

    Further information about how to access cells and rows in RadGrid for ASP.NET AJAX you can gather from the resources below:

    http://demos.telerik.com/aspnet-ajax/grid/examples/programming/accessingcellsandrows/defaultcs.aspx
    http://www.telerik.com/help/aspnet-ajax/grdaccessingcellsandrows.html

    Best regards,
    Sebastian
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jason Divis
    Jason Divis avatar
    8 posts
    Member since:
    Feb 2010

    Posted 01 Mar 2010 Link to this post

    When trying to recreate the issue this morning, I could not. The column1 uniquename value is working for another grid, so I'm left with thinking my original issue was the mistyping of the column1 column name.

    If we removed this post from the forum, it would not hurt my feelings. I don't think there was any value added to the community with it.

    Thanks for your help Sebastian, and my apologies for not being more careful before posting.
Back to Top