Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ProgressBar > Databind PeogressBar example needed

Not answered Databind PeogressBar example needed

Feed from this thread
  • Posted on Apr 6, 2010 (permalink)

    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.

    Reply

  • Posted on Apr 7, 2010 (permalink)

    Found the answer:

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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ProgressBar > Databind PeogressBar example needed
Related resources for "Databind PeogressBar example needed"

WPF ProgressBar Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]