DataFormComboBoxField

3 posts, 1 answers
  1. Gonzalo
    Gonzalo avatar
    76 posts
    Member since:
    Oct 2012

    Posted 23 Mar 2011 Link to this post

    <telerik:DataFormComboBoxField DataMemberBinding="{Binding Path=CNTYNAME}"
    ... 
                               Grid.Column="2"
                               Grid.Row="2"
    Could you share a DataFormComboBoxField example in xaml?

    I would like to bind a list of Counties to this field CntyName. The list is predefined in code the name of the method is GetCounties()

    Best regards,

    G
  2. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 24 Mar 2011 Link to this post

    Hello Gonzalo,

    I am sending you a sample project illustrating how you may define the DataFormComboBoxField. Generally, the definition should be as follows:

    <telerik:DataFormComboBoxField SelectedValuePath="ID"
                                                 DisplayMemberPath="Name"                                                 
                                                     DataMemberBinding="{Binding CountryID, Mode=TwoWay}"
                                     ItemsSource="{Binding Countries, Source={StaticResource MyViewModel}}" />

     

    Kind regards,
    Maya
    the Telerik team
  3. DevCraft banner
  4. Gonzalo
    Gonzalo avatar
    76 posts
    Member since:
    Oct 2012

    Posted 24 Mar 2011 Link to this post

    Thank you Maya! I will try and have a happy Telerik day ;-)
Back to Top