jQuery UI Widgets Forums Grid how can i do editable a dropdownlist in Grid?

This topic contains 1 reply, has 2 voices, and was last updated by  support 11 years, 11 months ago.

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

  • jose Ivan
    Member

    HI again , how can i do editable my dropdownlist  something like filter so when i write the list has to filter the collection or something like that.

    i have this.. so when i select this it’s ready to edit … create a dropdownlist

     $(grid).bind('cellselect', function (event) {
    var _colunma = $(grid).jqxGrid('getcolumn', event.args.datafield);
    RowIndex = event.args.rowindex; //get the index
    ColumnIndex = event.owner._getcolumnindex(event.args.datafield);
    $('#jqxgrid').jqxGrid({ editmode: 'singlecell' });
    if (_colunma.columntype == "dropdownlist") {
    var editable = $("#jqxgrid").jqxGrid('begincelledit', RowIndex, event.args.datafield);
    }
    //event.stopPropagation();
    });
    In my grid i got this.. but i can get the event in select...
    { text: 'Proyecto', columntype: 'dropdownlist', datafield: 'jobID', width: 250,
    validation: function (cell, value) {
    var validation = GetFieldInList(jobsList, 'text', value.toString());
    if (validation.length != 1) {
    return { result: false, message: "Seleccione un registro..." };
    }
    return true;
    },
    initeditor: function (row, cellvalue, editor) {
    editor.jqxDropDownList({ displayMember: 'text', valueMember: 'jobID', source: dropdownListAdapter, autoDropDownHeight: true, enableSelection: false });
    editor.bind('select', function (event) {
    alert('Ha cambiado');
    var _dd = event;
    });
    }
    },

     

    • This topic was modified 11 years, 11 months ago by  jose Ivan.
    • This topic was modified 11 years, 11 months ago by  admin. Reason: code formatting by using the Format HTML Code toolbar button

    support
    Participant

    Hi jose Ivan,

    It is not possible to add an edit field inside the DropDownList. This is supported by the ComboBox widget, but there’s still no such editor in the Grid. The DropDownList allows you to only choose between a list of selectable items.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.