Unplanned
Last Updated: 24 Jun 2025 19:21 by Albert
boone
Created on: 27 Jan 2025 09:59
Category: Grid
Type: Bug Report
2
Using OnModelInit and a custom Grid popup edit form throws a "no parameterless constructor" exception

The scenario is:

In this case, the Grid should not try to create or clone an edit item on its own. Instead, it should rely on the returned instance from OnModelInit. However, the Grid first fires OnModelInit and then it still tries to clone or create an edit item, which causes an exception.

A possible workaround is to manage the whole edit process manually, similar to the example with ListView popup editing.

1 comment
Albert
Posted on: 24 Jun 2025 19:21
Please consider fixing this.   Why have the OnModelInit method if half the time your own controls don't respect it?