Databind PeogressBar example needed

2 posts, 0 answers
  1. Art Kedzierski
    Art Kedzierski avatar
    107 posts
    Member since:
    Nov 2009

    Posted 06 Apr 2010 Link to this post

    Is it possible to databind the value of a RadProgressBar in XAML? For example:

    <telerik:RadProgressBar  
         Name="PercentBar"  
         Orientation="Horizontal"  
         Margin="3"  
         Value="{Binding Path=My_Percent, StringFormat=P0}" /> 

    Seems simple, but this particular code throws the following error:

    System.InvalidOperationException was unhandled 
    Message: A TwoWay or OneWayToSource binding cannot work on the read-only  
    property 'My_Percent' of type 'System.Data.Common.DataRecordInternal'. 

    There is no example in the current documentation for the control.
  2. Art Kedzierski
    Art Kedzierski avatar
    107 posts
    Member since:
    Nov 2009

    Posted 07 Apr 2010 Link to this post

    Found the answer:

    <telerik:RadProgressBar   
         Name="PercentBar"   
         Orientation="Horizontal"   
         Margin="3"   
         Value="{Binding Path=My_Percent, Mode=OneWay}" />  
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top