Issue Binding Selected Item

3 posts, 0 answers
  1. Laurent
    Laurent avatar
    5 posts
    Member since:
    Apr 2012

    Posted 16 Jan 2013 Link to this post

    Hi guys,

    First of all thanks for the release of this really useful control.
    I'm suffering from a little issue when using your control.

    I'm trying to Bind an Item to the selectedItem property of the Control and have the Text of the Item bound displayed when the control is rendered. Seems obvious isn't it! But i can't manage to get it. 

    my code is the following

    	<telerik:RadAutoCompleteBox x:Name="Aut_Area" Style="{StaticResource AutoCompleteStyle}"
    				Grid.Row="7"
    				Grid.Column="1"
    				IsEnabled="{Binding Item, Converter={StaticResource DisabledIfNullConverter}}"
    				ItemsSource="{Binding Area}"
    				SelectedItem="{Binding ElementName=Item, Path=Area, Mode=TwoWay}"
    				AutoCompleteMode="Suggest"
    				SelectionMode="Single"
    				TextSearchMode="Contains"
    				TextSearchPath="Name"/>
     
    I tried as well to use the Populate() method of the control from the code on the Activated event of the view but it make the control crash.

    Is there something special to do or is this behaviour simply not available at the moment?

    Thanks for your help.

    Regards,

    Laurent.
  2. Laurent
    Laurent avatar
    5 posts
    Member since:
    Apr 2012

    Posted 17 Jan 2013 Link to this post

    Hi again,

    After further investigation, it seems that the binding to the SelectedItems property is displaying items correctly on loading but not using the SelectedItem Property.

    It seems to be a control binding issue from the control itself

    Regards,

    Laurent.
  3. DevCraft banner
  4. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 18 Jan 2013 Link to this post

    Hi Laurent,

    There was an issue concerning the SelectedItem property of the control which was fixed and is available in our latest internal builds.

    Could you try to reproduce the issue with our latest internal build of RadControls and let us know if the issue persists?

    Regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top