AutoCompleteBox inside DataForm will not bind after insert

3 posts, 0 answers
    HCT-CERT avatar
    24 posts
    Member since:
    Aug 2012

    Posted 05 Feb 2013 Link to this post

    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.



  2. Vladi
    Vladi avatar
    749 posts

    Posted 07 Feb 2013 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

    HCT-CERT avatar
    24 posts
    Member since:
    Aug 2012

    Posted 16 Feb 2013 Link to this post

    Thanks Vladi. Installing the latest internal build fixed the problem.


Back to Top