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

Add button disabled after inserting the an item.

3 Answers 86 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Javid
Top achievements
Rank 1
Javid asked on 04 Oct 2012, 10:04 AM
Hej Telerik,

I have a dataform with the ItemsSource property bound to an ObservableCollection of a type that implements IEditableObject interface. The problem is that after inserting an item the addNewItem button gets disabled. I can click on Edit and then cancel and now the add button turns active again. What am I doing wrong? The AutoEdit, AutoGeneratedFileds and AutoCommit properties are set false.

Best Regards
Javid

3 Answers, 1 is accepted

Sort by
0
Art Kedzierski
Top achievements
Rank 2
answered on 04 Oct 2013, 02:59 PM
I am having this exact same issue, although my ObservableCollection doesn't implement the IEditableObject interface. The workaround is still effective.
0
Ivan Ivanov
Telerik team
answered on 08 Oct 2013, 06:03 AM
Hi,

 Have you committed the changes ("Ok" button) after inserting the item?

Regards,
Ivan Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Art Kedzierski
Top achievements
Rank 2
answered on 05 Nov 2013, 04:04 PM
Yes, that is how the item is added.
Tags
DataForm
Asked by
Javid
Top achievements
Rank 1
Answers by
Art Kedzierski
Top achievements
Rank 2
Ivan Ivanov
Telerik team
Share this question
or