Author Topic: error on fields in grid  (Read 2806 times)

angelahlp

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
error on fields in grid
« on: February 21, 2014, 11:45:31 pm »
I keep getting the following error - erratically and not with any clear pattern - when editing a field in the grid. I have gotten this error on checkbox fields and dateeditor fields that I have noticed.

"uncaught exception: assert failed"

I have tried and tried to figure out what the cause of this error is to no avail. I edit a field and then it doesn't go away - editing that is ... the checkbox remains a checkbox and doesn't change to "true/false" like it normally does and the above error shows in Firebug. the date field box doesn't go away when I move to another field...

Here is the code for one of the checkbox if it helps:
            { title: "Vehicle?", width: 100, dataType: "bool", align: "center", dataIndx: 'isvehicle',
                editor: { type: "checkbox", style: "margin:3px 5px;" },
                filter: { type: "checkbox", condition: "equal",
                     listeners: [{ click: function (evt, ui) {
                         //tri state check box (true, false, null)
                         var column = ui.column,
                             prevVal = column.filter.value,
                             stopEvent = false,
                             newVal = null;
                         if (prevVal === false) {
                             stopEvent = true;
                         }
                         else if (prevVal === true) {
                             newVal = false;
                         }
                         else {
                             newVal = true;
                         }
                         filter("isvehicle", newVal);
                         if (stopEvent) {
                             return false;
                         }
                     }
                     }]
                 }
            },

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: error on fields in grid
« Reply #1 on: February 23, 2014, 10:41:09 am »
I'm unable to reproduce the error with checkbox editors so far.

Do you get this intermittent error only in Firefox. Which version is it?