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

Issue Binding Selected Item

2 Answers 99 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Laurent
Top achievements
Rank 1
Laurent asked on 16 Jan 2013, 04:42 PM
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 Answers, 1 is accepted

Sort by
0
Laurent
Top achievements
Rank 1
answered on 17 Jan 2013, 11:58 AM
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.
0
Vladi
Telerik team
answered on 18 Jan 2013, 03:23 PM
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.

Tags
AutoCompleteBox
Asked by
Laurent
Top achievements
Rank 1
Answers by
Laurent
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or