Opened 5 years ago

Closed 5 years ago

#18090 closed defect (patchwelcome)

DataGrid fails to initialize without the errorMessage property (Chrome)

Reported by: asoltesz Owned by:
Priority: undecided Milestone: tbd
Component: DojoX Grid Version: 1.9.3
Keywords: Cc:
Blocked By: Blocking:

Description

If I create a new DataGrid? without specifying the "errorMessage" property, the DataGrid? fails to initialize.

Symptoms: The error message on the Chrome console: "Uncaught TypeError?: Cannot read property 'toString' of undefined"

It always fails in Chrome v34 for the first page execution, it works properly for the second (which is strange).

Interestingly, it fails rarely on Firefox 17.

Cause:

Tracing the problem back to its source, it seems, that postMixInProperties sets this.errorMessage with string.substitute() and that fails when this.errorMessage is not already defined. If I provide errorMessage to the constructor, it never seems to fail.

Change History (1)

comment:1 Changed 5 years ago by bill

Resolution: patchwelcome
Status: newclosed

DojoX Grid and EnhancedGrid are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

It's possible the community may consider patches to the old DojoX Grid code though.

Note: See TracTickets for help on using tickets.