Access aggregate value

4 posts, 0 answers
  1. Travis
    Travis avatar
    8 posts
    Member since:
    Nov 2007

    Posted 12 Oct 2011 Link to this post

    I am trying to access the calculated aggregate value as I want to use the calculated value as the value of the cell. I can see their are some private items but I can not access them server side. Is there any way to achieve this?
  2. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 13 Oct 2011 Link to this post

    Hello Travis,

    Please examine the Accessing Cells and Items help topic to see how to access the different items of the RadTreeList control.

    I hope this helps.

    All the best,
    Mira
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Travis
    Travis avatar
    8 posts
    Member since:
    Nov 2007

    Posted 13 Oct 2011 Link to this post

    Yes but the calculated value footers do not show up in the item collection in the prerender. Can I access them at another time in the control life cycle?
  5. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 18 Oct 2011 Link to this post

    Hello Travis,

    Please use the following code in order to access the desired value on prerender of the treelist:
    protected void RadTreeList1_PreRender(object sender, EventArgs e)
    {
        string text = (RadTreeList1.GetItems(TreeListItemType.FooterItem)[0] as TreeListFooterItem)["ColumnUniqueName"].Text;
        //..
    }

    I hope this helps.

    Regards,
    Mira
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top