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

AutoCompleteBox inside DataForm will not bind after insert

2 Answers 41 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
HCT-CERT
Top achievements
Rank 1
HCT-CERT asked on 05 Feb 2013, 08:27 AM
Hi,
I have an AutoCompleteBox control as part of the insert template for RadDataForm. My AutoCompleteBox SelectedItem is bound to a navigation property (EF 5 Model/WCF Data Services).The  AutoCompleteBox works fine in ReadOnly and Edit mode, but once I insert a new record, all my controls would bind properly except the AutoCompleteBox. I know that this due to the fact that the record navigation property needs to be loaded through DataServiceContext.LoadProperty, but i do not know the event handler in which to call this method.I tried calling this method in the RadDataForm CurrentItemChanged, but that did not help .My understanding is that the form will switch to ReadOnly mode after inserting a record.


Regards,

Madani


2 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 07 Feb 2013, 11:56 AM
Hi Madani,

Thank you for contacting us.

There was an known issue concerning the SelectedItem property of the AutoCompleteBox control that was fixed a few weeks ago that could be the cause of this issue.

Could you try to reproduce the issue with our latest internal build and see if it persists, also could you try to reproduce it with another control for example RadComboBox in order to be certain that the issue comes from the AutoCompleteBox control and not the navigation property itself? This would be very helpful in order to narrow down the possible cause of the issue.

Looking forward to your response.

Kind regards,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
HCT-CERT
Top achievements
Rank 1
answered on 17 Feb 2013, 05:54 AM
Thanks Vladi. Installing the latest internal build fixed the problem.

Thanks

Madani
Tags
AutoCompleteBox
Asked by
HCT-CERT
Top achievements
Rank 1
Answers by
Vladi
Telerik team
HCT-CERT
Top achievements
Rank 1
Share this question
or