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

Error on Insert

1 Answer 80 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 13 Jul 2017, 03:31 PM

I have a problem when inserting a new record into a TreeList.  I am using advanced OnNeedDataSource binding and manually inserting the record into our DB during the InsertCommand.  After the insert command completes I get the following error:

"Property accessor '[PK and DataKeyName]' on object '[Object]' threw the following exception:'Object does not match target type.'"

I can't find any helpful documentation on this exception, is there any help that you may be able to give on this matter?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 18 Jul 2017, 02:57 PM
Hi Josh,

I am afraid that the provided information in not enough for us to tell what is causing the problem and how to resolve it. Can you, please, share some more details on the exact scenario in which the problem occurs? Would it be possible prepare and send us a runnable sample where we can reproduce the behavior at hand and examine it further?

Thank you in advance for your cooperation.

Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
TreeList
Asked by
Josh
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or