mleibman/SlickGrid — Issue #224: define columns with field set to an array value
Author: Schobenhauer
Created: 2011-10-20 14:30:35+00:00
State: open

I'd like to set the slickgrid to a dynamic data object. This object is always in the following form:

{"Cells":["prop0","prop1","prop2"],"Id":x}

I'm defining my slickgrid columns as follows:

{ id: "Id", name: "Id", field: "Id", width: 100 },
{ id: "property0", name: "property0", field: "Cells[0]", width: 100 },
{ id: "property1", name: "property1", field: "Cells[1]", width: 100}

The databinding on the id property works fine. But the values from the "Cells" array won't show.
How should I define the field binding?

Thanks