Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > NumericUpDown > Binding numericupdown to an array

Not answered Binding numericupdown to an array

Feed from this thread
  • Josh Jones avatar

    Posted on Aug 9, 2011 (permalink)

    Hi,
    I'm trying to bind (two way) ten numericupdown elements to an array of ten Doubles, i've tried every method but just cannot get it to work - here is my latest attempt:
    VB:
    Private m_Scores As New ObservableCollection(Of Double) 
    Public Property Score(ByVal index As IntegerAs Double
        Get
            Return m_Scores.Item(index)
        End Get
        Set(ByVal Value As Double) m_Scores.Item(index) = Value
            RaiseEvent PropertyChanged(MeNew PropertyChangedEventArgs("Score(" & index & ")"))
        End Set
    End Property
    XAML:
    <telerik:RadNumericUpDown Name="RadNumericUpDown1" Value="{Binding Path=Score[0]}"/> 
    <telerik:RadNumericUpDown Name="RadNumericUpDown2" Value="{Binding Path=Score[1]}"/>
    etc.

    Can anyone point me in the right direction?

    Reply

  • Yana Yana admin's avatar

    Posted on Aug 10, 2011 (permalink)

    Hello Josh,

    I would suggest to use ValueConverter in order to get the needed value from the array. Please check this article for more details about IValueConverter interface,

    Greetings,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > NumericUpDown > Binding numericupdown to an array
Related resources for "Binding numericupdown to an array"

Silverlight NumericUpDown Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]