I found some information here http://www.telerik.com/community/forums/aspnet-ajax/grid/telerik-webcontrols-gridinsertionobject-error.aspx and here http://www.telerik.com/help/aspnet/grid/grderrormessages.html but they cannot help because my property is a class, not a primitive type.
My error message: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'Address'.
Is there anyway to bind a data class in insert mode?
My error message: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'Address'.
Is there anyway to bind a data class in insert mode?
<FormTemplate> |
<table> |
<tr> |
<td> |
Street: |
</td> |
<td> |
<asp:TextBox ID="txtStreet" runat="server" Text='<%# Bind("Address.Street") %>' /> |
</td> |
<td> |
City: |
</td> |
<td> |
<asp:TextBox ID="txtCity" runat="server" Text='<%# Bind("Address.City") %>' /> |
</td> |
<td> |
Zip: |
</td> |
<td> |
<asp:TextBox ID="txtZip" runat="server" Text='<%# Bind("Address.Zip") %>' /> |
</td> |
<td align="right"> |
<asp:LinkButton ID="btnUpdate" runat="server" CommandName="Update" Visible='<%# Eval("Id").ToString().Length != 0 %>'>Update</asp:LinkButton> |
<asp:LinkButton ID="btnAdd" runat="server" CommandName="PerformInsert" Visible='<%# Eval("Id").ToString().Length == 0 %>'>Add</asp:LinkButton> |
|
<asp:LinkButton ID="btnCancel" runat="server" CommandName="Cancel">Cancel</asp:LinkButton> |
</td> |
</tr> |
</table> |
</FormTemplate> |