jQuery UI Widgets Forums Grid Input Edit in Row Detail

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Input Edit in Row Detail #63982

    Alantod17
    Participant

    I am willing to use row detail as a edit area for my data row.

    How ever i am hiting a problem now is that the input filed in first expand row is locked up(I can not enter any number or english character but special characters such as + or – are still enterable) after sencod row expanded.

    var initRowDetails = function (index, parentElement, gridElement, datarecord) {
                    $(parentElement).append('<input>');
                }
                var jqxOption = {
                    source: dataAdapter,
                    showstatusbar: false,
                    theme: 'office',
                    altrows: true,
                    width: '100%',
                    autoheight: true,
                    sortable: true,
                    editable: true,
                    selectionmode: 'singlerow',
                    columns: columns,
                    columnsresize: true,
                    rowDetails: true,
                    pageable: true,
                    pagermode: 'simple',
                    statusbarheight: 27,
                    showaggregates: true,
                    rowdetailstemplate: { rowdetails: "<div style='margin-top:10px; padding-right:20px;padding-left:20px; class='row'></div>", rowdetailsheight: 450 },
                    initRowDetails: initRowDetails,
                };

    any idea? please help

    Input Edit in Row Detail #63996

    Dimitar
    Participant

    Hello Alantod17,

    This is a known issue. Here is a workaround for it:

    var initRowDetails = function (index, parentElement, gridElement, datarecord) {
        var input = $('<input type="text" />');
        $(parentElement).find('div').append(input);
        input.keydown(function (event) {
            $("#jqxgrid").jqxGrid({ editable: false });
        });
        input.keyup(function (event) {
            $("#jqxgrid").jqxGrid({ editable: true });
        });
    }

    Best Regards,
    Dimitar

    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.