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

Add Progressbar to cell

1 Answer 61 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 18 May 2015, 12:21 PM

I'd like to add a progressbar to a cell of treelistview (like in the example from the attachment).

I tried following, but nothing shows up on the view:

<telerik:RadTreeListView Margin="0,0,-2,0">
       <telerik:RadTreeListView.Columns>
           <telerik:GridViewColumn Header="Percent">
               <telerik:GridViewColumn.CellTemplate>
                   <DataTemplate>
                       <telerik:RadProgressBar Minimum="0" Maximum="100" Value="{Binding Progress}" Width="50"/>
                   </DataTemplate>
               </telerik:GridViewColumn.CellTemplate>
           </telerik:GridViewColumn>
       </telerik:RadTreeListView.Columns>
   </telerik:RadTreeListView>

any help appreciated

 ​

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 19 May 2015, 11:40 AM
Hi,

I tested the code snippet you shared locally, binding the Value to an Int property of the business object and it worked fine. Do you have a property Progress presented with the bound data item? What is its type?

Regards,
Dimitrina
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
TreeListView
Asked by
Andy
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or