@alexisescalagmail-com

@alexisescalagmail-com

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Object Bind and Editing in cell grid #103053
    alexis Escala
    Participant

    Hello Martin, thanks for your answer, I have a question about the example that you mentioned, Why you don’t have a Supplier selected? How I can set a supplier selected in my solution? You can help me with that?

    in reply to: Autocomplete With List of Objects #103017
    alexis Escala
    Participant

    Thanks, I didn’t know that, but I have the following question:

    {
    label: ‘Status’, dataField: ‘custom’, width: 120, editor: {
    template: ‘<smart-combo-box></smart-combo-box>’,
    onInit(row, column, editor) {
    const dropDownList = (editor.firstElementChild);

    dropDownList.dataSource = [{ “value”: 10, “label”: “UNFULFILLED” }, { “value”: 11, “label”: “LUMP” }, { “value”: 12, “label”: “BOUGHT” }, { “value”: 13, “label”: “VIRTUAL” }, { “value”: -2, “label”: “NEW” }, { “value”: -3, “label”: “ESTIMATED” }, { “value”: -5, “label”: “QUOTE” }, { “value”: 0, “label”: “APPROVED” }, { “value”: 2, “label”: { “value”: 11, “label”: “LUMP” } }, { “value”: 3, “label”: “DENIED” }, { “value”: 4, “label”: “PROCESS” }, { “value”: 1, “label”: “REQUESTED” }, { “value”: 7, “label”: “HOLIDAY” }, { “value”: 8, “label”: “EXPIRED” }, { “value”: 9, “label”: “CANCELLED” }, { “value”: 15, “label”: “DECLINED” }, { “value”: 14, “label”: “DENIEDPDN” }];
    dropDownList.dropDownAppendTo = ‘body’;
    },
    onRender(row, column, editor) {
    },
    getValue() {
    return this.firstElementChild.selectedValues[0].description;
    }
    },
    }

    In this case, I don’t have nothing in selectedValues but the grid doesn’t show the list of items in the cell, which is the problem?
    When you say that the selectedValues expects a string, in this case, should be in onRender or onInit?

    The other question is, if I need to put { “value”: 7, “label”: “HOLIDAY” } as selected value,the value in this case is a number, the selectedvalues accept a number also?
    Ex: .selectedValue = [“7”] or .selectedValue = [7], always is a array??

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