Hi, I am using GridDropDownColumn in a grid, and getting this error when I click Add:
DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'BenefitCategoryId'.
//my declarative source code
<telerik:GridDropDownColumn DataField="BenefitCategoryId" ListTextField="Description" ListValueField="Id" DataSourceID="CategorySource" HeaderText="Kategory Beskrivelse">
</telerik:GridDropDownColumn>
//DataSoruce soruce code
<mrc:BusinessObjectDataSource runat="server" ID="CategorySource" BusinessObjectName="BenefitCategory"
BusinessObjectAssembly="BusinessObjects" BusinessObjectNamespace="Company.BusinessObjects">
<SelectParameters>
<asp:ControlParameter ControlID="CorporationDropDownList" PropertyName="SelectedValue"
Name="CorporationId" Type="String" />
</SelectParameters>
<InsertParameters>
<asp:ControlParameter ControlID="CorporationDropDownList" PropertyName="SelectedValue"
Name="CorporationId" Type="String" />
</InsertParameters>
</mrc:BusinessObjectDataSource>
I read below articles, is this problem is solved?
http://www.telerik.com/community/forums/aspnet-ajax/grid/error-on-insert.aspx
How can I solve this problem?
Thanks,
Thaya
DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'BenefitCategoryId'.
//my declarative source code
<telerik:GridDropDownColumn DataField="BenefitCategoryId" ListTextField="Description" ListValueField="Id" DataSourceID="CategorySource" HeaderText="Kategory Beskrivelse">
</telerik:GridDropDownColumn>
//DataSoruce soruce code
<mrc:BusinessObjectDataSource runat="server" ID="CategorySource" BusinessObjectName="BenefitCategory"
BusinessObjectAssembly="BusinessObjects" BusinessObjectNamespace="Company.BusinessObjects">
<SelectParameters>
<asp:ControlParameter ControlID="CorporationDropDownList" PropertyName="SelectedValue"
Name="CorporationId" Type="String" />
</SelectParameters>
<InsertParameters>
<asp:ControlParameter ControlID="CorporationDropDownList" PropertyName="SelectedValue"
Name="CorporationId" Type="String" />
</InsertParameters>
</mrc:BusinessObjectDataSource>
I read below articles, is this problem is solved?
http://www.telerik.com/community/forums/aspnet-ajax/grid/error-on-insert.aspx
How can I solve this problem?
Thanks,
Thaya