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

UpdateSourceTrigger=PropertyChanged Problem

3 Answers 269 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Md.Hasanuzzaman
Top achievements
Rank 1
Md.Hasanuzzaman asked on 09 Jul 2011, 07:40 PM
i need to Trigger my methord when Change Value of RadNumericUpDown  Where is My Code :

<telerik:RadNumericUpDown x:Name="tv" HorizontalAlignment="Left" Margin="80,26,0,0" VerticalAlignment="Top" Width="183" IsInteger="True" Value="{Binding MethodParameters[0], BindsDirectlyToSource=True, Mode=OneWayToSource,  Source={StaticResource totalAmountIs},Converter ={StaticResource doubleToString}, UpdateSourceTrigger=PropertyChanged}" UpdateValueEvent="PropertyChanged"/>

But it Doesn`t work. if Bind a textbox with this same code it work fine. here were i am wrong ?? it well be best if give a example

Thank`s for lelp.

3 Answers, 1 is accepted

Sort by
0
Md.Hasanuzzaman
Top achievements
Rank 1
answered on 09 Jul 2011, 08:30 PM
This Problem is Sloved. It was Problem in my value Converter.
0
Aicha
Top achievements
Rank 1
answered on 23 Jan 2013, 11:16 AM
Hello,

Can you please tell me how do you set 

Source={StaticResource totalAmountIs} ?

can you provide me a little code about it ?

I have a problem in working with this property :(

Thanks a lot !
Aicha
0
Yana
Telerik team
answered on 28 Jan 2013, 10:10 AM
Hi Aisha,

It seems from the provided code that the ViewModel is set as a Resource in the XAML file. You can check the following links for more details on this approach:

http://stackoverflow.com/questions/8153949/wpf-binding-static-resource-cannot-be-resolved
http://msdn.microsoft.com/en-us/magazine/cc163299.aspx

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
NumericUpDown
Asked by
Md.Hasanuzzaman
Top achievements
Rank 1
Answers by
Md.Hasanuzzaman
Top achievements
Rank 1
Aicha
Top achievements
Rank 1
Yana
Telerik team
Share this question
or