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

Custom header and Custom item

3 Answers 63 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Melvis
Top achievements
Rank 1
Melvis asked on 07 Dec 2012, 12:58 PM
Hi,

I am using the telerik asp.net ajax treelist to display data. For one of the column, I would like to display graphics display like rectangle, polygon or line for example showing progress of a task. For the same column, I would like to display a scale on its header column.

Is there a way to do this on client-side or server-side or both on the treelist? If yes, do you have an example for this? Thanks.

Best regards,
Melvis

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Dec 2012, 07:59 AM
Hi Melvis,

I suppose you want to show a progressarea in the header and items of a column. One suggestion is that you can add a RadProgressArea to the HeaderTemplate and ItemTemplate of TreeListTemplateColumn. Following is the sample code.

ASPX:
<telerik:TreeListTemplateColumn UniqueName="ColumnUniqueName" >
    <HeaderTemplate>
        <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
        <telerik:RadProgressArea ID="RadProgressArea1" runat="server">
        </telerik:RadProgressArea>
    </HeaderTemplate>
    <ItemTemplate>
        <telerik:RadProgressArea ID="RadProgressArea2" runat="server">
        </telerik:RadProgressArea>
    </ItemTemplate>
</telerik:TreeListTemplateColumn>

Regards,
Princy.
0
Melvis
Top achievements
Rank 1
answered on 10 Dec 2012, 02:52 PM
No. I actually I want to display a filled -rectangle or partial-filled rectangle (depending on the row data) in the item. In the header, I want to display a scale ( a ruler) running from 60 to -60.
0
Marin
Telerik team
answered on 12 Dec 2012, 08:46 AM
Hello,

 You can still make use of the HeaderTemplate of the TreeListTemplateColumn as Princy showed in the previous post. You can place arbitrary HTML there that suits your needs.
You can also check out the RadHTMLChart which provides various options for displaying data.

Regards,
Marin
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
Melvis
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Melvis
Top achievements
Rank 1
Marin
Telerik team
Share this question
or