This is a migrated thread and some comments may be shown as answers.

Access aggregate value

3 Answers 67 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 12 Oct 2011, 07:02 PM
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?

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 13 Oct 2011, 02:29 PM
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
0
Travis
Top achievements
Rank 1
answered on 13 Oct 2011, 11:15 PM
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?
0
Mira
Telerik team
answered on 18 Oct 2011, 11:40 AM
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
Tags
TreeList
Asked by
Travis
Top achievements
Rank 1
Answers by
Mira
Telerik team
Travis
Top achievements
Rank 1
Share this question
or