Add Progressbar to cell

2 posts, 1 answers
  1. Andy
    Andy avatar
    4 posts
    Member since:
    Feb 2015

    Posted 18 May 2015 Link to this post

    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

     ​

  2. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 19 May 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top