jQWidgets Forums

jQuery UI Widgets Forums Grid Cellvaluechanging not working when selecting another item.

This topic contains 1 reply, has 1 voice, and was last updated by  williamtourinho 12 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • williamtourinho
    Participant

    Hi, i have a problem, when i select another item in the grid when editing a item with the drop down list the “cellendedit” and “cellvaluechanging” are not call.. can you help?

    The code:

    $(“#jqxFoodTypeGrid”).jqxGrid(
    {
    width: 1248,
    height: 630, //’100%’,
    showfilterrow: true,
    sortable: true,
    altrows: true,
    altstart: 0,
    editable: true,
    filterable: true,
    theme: ‘mybag’,
    source: dataFoodTypeAdapter,
    selectionmode: ‘singlecell’,
    altrows: true,
    editmode: ‘dblclick’,
    columns: [
    { text: ‘Food Type’, filtertype: ‘number’, datafield: ‘FoodTypeId’, width: 200,
    validation: function (cell, value) {
    if (value == ”) {
    return { result: false, message: “The value is empty!” };
    }
    return true;
    }
    },
    { text: ‘WB / NB’, datafield: ‘WbOrNbString’, filtertype: ‘checkedlist’, width: 1028, columntype: ‘dropdownlist’,
    createeditor: function (row, column, editor) {
    // assign a new data source to the dropdownlist.
    var list = [‘NB’, ‘WB’];
    editor.jqxDropDownList({ source: list });
    },
    // update the editor’s value before saving it.
    cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
    // return the old value, if the new value is empty.
    if (newvalue == “”) return oldvalue;
    }, createfilterwidget: function (column, columnElement, widget) {
    widget.jqxDropDownList({ dropDownWidth: 1020 });
    }, cellclassname: ‘GridItemsFoodTypeCell’
    }
    ]
    });


    williamtourinho
    Participant

    I have found the solution. I cant use the “editmode: ‘dblclick’,”. This was creating the problem.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.