jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Column Edit Mode

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 8 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid Column Edit Mode #88597

    kalel16
    Participant

    I have a Grid which has a column of combobox type. During edit the users can select a value from the combobox and hits ENTER to commit the edit. Is there a way to commit the edit as soon as the user selects a value in the combobox?

    Grid Column Edit Mode #88619

    Hristo
    Participant

    Hello kalel16,

    I would like to focus your attention on updaterow callback.
    Please, take a look at this demo:
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/customizededitors.htm?light

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Grid Column Edit Mode #88711

    kalel16
    Participant

    Hi Hristo,

    Here is the jsFiddle i created.

    http://jsfiddle.net/0g0cocaz/4/

    What i am trying to do is end the cell edit when a user selects a value in the column dropdown. this seems to be working for a few times and then the initeditor stops working for no reason….i click through some cells (10-15 times) and then the combobox doesn’t showup when i click in the cell.

    createeditor: function (row, value, editor) {
    editor.jqxComboBox({ source: countriesAdapter, displayMember: ‘label’, valueMember: ‘value’ });
    },
    initeditor: function(row, value, editor) {

    editor.on(‘select’, function(event) {

    $(“#jqxgrid”).jqxGrid(‘endcelledit’, row, “countryCode”, false);
    editor.off(‘select’);

    console.log(event);
    })
    }

    Grid Column Edit Mode #88745

    Hristo
    Participant

    Hello kalel16,

    Please take a look at this workaround:
    http://jsfiddle.net/2u66g0zy/
    (the example is not the best solution but this is only what we can provide you)

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.