Telerik inline edit mode needs dummy row when using ObjectInstanceDataSource

Today I stumbled upon an annoying error from the Telerik component RadGrid. When bound to an ObjectInstanceDataSource combined with inline edit mode, you need to hook up to the OnItemCommand event in order to insert a new object of the same type as the ObjectInstanceDataSource is bound to. Otherwise you’ll get a nasty error, telling you that the Telerik.Web.UI.GridInsertionObject doesn’t contain a specified property.

See Brian Seekfords blog for more detail on the solution.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.