Completed
Last Updated: 24 Jun 2015 07:49 by ADMIN
ADMIN
Created by: Angel Petrov
Comments: 0
Category: TreeList
Type: Bug Report
0

			
Unplanned
Last Updated: 31 May 2021 12:54 by ADMIN
ADD: Functionality in TreeList to Sorting with Subobjects like this:

<telerik:TreeListBoundColumn DataField="subobject.MyPropertyName" SortExpression="subobject.MyPropertyName"
 HeaderText="MyPropertyName" UniqueName="MyPropertyName"  >
        
Won't Fix
Last Updated: 28 Nov 2016 15:07 by ADMIN
Declined
Last Updated: 06 Apr 2018 12:55 by ADMIN
The agregate sum value shown in the bottom of the TreeList columns displays bigger sum than the actual one (it seems that the child items values are also taken into consideration).

Steps to reproduce:
1. Open http://demos.telerik.com/aspnet-ajax/treelist/examples/columns/aggregates/defaultcs.aspx?show-source=true

2. Check the sum shown in the Population column

Actual: It shows 10,702,470,081.00

Expected: It should be 6,464,732,588.00
Unplanned
Last Updated: 16 Oct 2018 14:14 by Attila Antal
ADMIN
Created by: Attila Antal
Comments: 0
Category: TreeList
Type: Bug Report
0
Workaround would be to apply the first-column indicator CSS class name in the markup. Then this class name will be inherited by the next column if the first is Hidden.

With the following markup, the rendered results, the "Parent Category ID" column header will have the "first-visible-column" CSS class name set.
<telerik:TreeListBoundColumn DataField="ID" UniqueName="ID" HeaderText="Category ID" Visible="false">
    <HeaderStyle CssClass="first-visible-column" />
</telerik:TreeListBoundColumn>

<telerik:TreeListBoundColumn DataField="ParentID" UniqueName="ParentID" HeaderText="Parent Category ID">
</telerik:TreeListBoundColumn>
OR

If applying in the Code Behind, try using the PreRenderComplete event of the Page.

protected void Page_PreRenderComplete(object sender, EventArgs e)
{
    string firstVisibleColName = RadTreeList1.RenderColumns.Where(x => x.Visible && x.Display).First().UniqueName;

    TreeListHeaderItem headerItem = RadTreeList1.GetItems(TreeListItemType.HeaderItem)[0] as TreeListHeaderItem;
    headerItem[firstVisibleColName].CssClass += " first-visible-column";
}
1 2