Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid with list editType

    When I double click on a ListGrid row where one of the fields has the editType set to "list", I get the following error in FireBug:

    _4[i] is undefined ISC_Forms.js (line 293)

    SmartClient version is 6.5 SmallVendor

    Probably just some simple error in how I'm configuring things, but I don't see it. The following is a simplified version of how the ListGrid is being set up (this isn't runnable as is, it's just to show how the field is being set up for the "list" editType):


    var tablePanel = isc.ListGrid.create({
    fields: [
    {name: "Row", width: 50, canEdit: false},
    {name: "Name", width: 150, canEdit: true, editorType: "text"},
    {name: "Married", width: 100, canEdit: true, editorType: "list",
    editorValueMap: ["Yes", "No"]}
    ],
    data: [
    {Row: 1, Name: "Frank", Married: "No"},
    {Row: 2, Name: "Mark", Married: "Yes"},
    {Row: 3, Name: "John", Married: "Yes"},
    ],
    autodraw: false,
    width: "100%",
    height: "75%",
    border: "1px solid black",
    padding: 2,
    showHeader: true,
    showAllRows: false,
    selectionType: "multiple"
    });

    #2
    editorType is expected to be a SmartClient className (what you would pass to isc.defineClass(), or the name of an existing class).

    Comment

    Working...
    X