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

Insert issue

5 Answers 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
fer
Top achievements
Rank 1
fer asked on 04 Mar 2009, 09:16 PM
Hi, I have an issue when PerformInsert event is finishing, where I have this line:
RadGrid.MasterTableView.Rebind();

This line calls to the RadGrid_NeedDataSource event, which has a line like this:
RadGrid.DataSource = Session["ObjectList"];

The problem is that when this last event is fired, I have an error like this:

 "DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name ...subobject.property"

This only fails at the PerformInsert event but not at update or delete...

any  ideas?





5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Mar 2009, 06:54 AM
Hello,

The reason for this error is that your grid instance can not bind a value for the newly inserted item through the Eval()/Bind() syntax you hard-coded. For more information on this, you can refer to the section "Error message "Telerik.Web.UI.GridInsertionObject does not contain a property with the name <some_name>" in the following documetation which explains in detail about this kind of an error:
Known reasons for error messages

Thanks
Princy.
0
fer
Top achievements
Rank 1
answered on 05 Mar 2009, 12:10 PM
Thanks, I will read the article that you have sent me, but why is it working when I try to edit or delete a row? Only at the PerfomInsert it fails...
The error appears from the edit form and not from the grid.
Another strange thing that I saw is that if I quit the rebind from the PerfomInsert and I click on "cancel" button after the insert, it works fine, without problems.

any ideas?

0
rick
Top achievements
Rank 1
answered on 06 May 2009, 01:58 PM
I'm having the same issue, was this ever resolved?
0
Mark Galbreath
Top achievements
Rank 2
answered on 15 Oct 2009, 06:45 PM
The documentation on Insert (and everything else) sucks, as do the lame answers from Telerik that just send us to some article that never addresses the immediate question.  Whoever is responsible for the API docs should be fired.
0
Yavor
Telerik team
answered on 20 Oct 2009, 06:38 AM
Hello Mark,

The present thread contains no official response from Telerik. Basically, forum posts are meant as a place for the community to exchange ideas/solutions, rather than a guaranteed way to get support, although we always review all forum threads. Additionally, I will ask you to refrain from using such strong language, as it really does not help neither you, nor the community, and is rather detrimental to resolving the issue.
To address any problem that you are having, you can consider opening a formal support ticket, and providing the relevant details, or doing so in this forum thread. Based on this information, we will provide more information on how to work around/resolve the problem. Additionally, we will be happy to receive any constructive feedback on the API/documentation, as this is constantly being updated and enhanced.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
fer
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
fer
Top achievements
Rank 1
rick
Top achievements
Rank 1
Mark Galbreath
Top achievements
Rank 2
Yavor
Telerik team
Share this question
or