Announcement

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

    Browser error when leaving date column editor if validateOnChange = true

    Hi, I am having browser error when trying to exit edit row by clicking on another row if focus is currently in date editor:

    Object expected ISC_Core.js?isc_version=SC_SNAPSHOT-2010-08-27.js, line 3636 character 169

    I reproduced it with feature explorer, here is the sample:
    Code:
    isc.TreeGrid.create({
        ID: "employeeTree",
        width: 500,
        height: 250,
        dataSource: "employees",
        autoFetchData: true,
        canEdit: true,
        canReorderRecords: true,
        canAcceptDroppedRecords: true,
        nodeIcon: "icons/16/person.png",
        folderIcon: "icons/16/person.png",
        showOpenIcons: false,
        showDropIcons: false,
        closedIconSuffix: "",
        modalEditing: true,
        selectOnEdit: true,
        fields: [
            {name: "Name"},
            {name: "Job"},
            {name: "Salary"},
            {name: "Date", type: "date", validateOnChange: true}
        ]
    });
    Steps:
    1. Run the sample, expand the root node.
    2. Double click on the root node to go to the edit mode.
    3. Select date in the date field column. Focus should stay in the date editor.
    4. Click on another row -> error happens right away, screwing the entire tree.

    The error happens in validateCellValue() code (partucular in validateFieldAndDependencies() function) which is called on "blur" of the date field. It tries to access current edit row, but for some reason the edit row number is already cleared (set to null) by that time.

    Version:
    SC_SNAPSHOT-2010-08-27

    Note: the error does not happen if I type wrong date value. In this case it shows the validation error. Only if the date value is correct.
    Last edited by ESherbakova; 16 Sep 2010, 05:36.

    #2
    Thanks for the clear test case. We've now resolved this. The fix will be present in the next nightly build.

    Comment

    Working...
    X