jQWidgets Forums

jQuery UI Widgets Forums Grid jqxGrid grid dynamic Rows controls based on flags

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

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

  • Ethirajram
    Participant

    Hi, I Would like to create dynamic rows with jqxNumberInput and jqxDropDownList based on row flags, for ex T –> Textbox, D–> Dropdownlist
    executing without any issue but unable to edit, So JqxWidget Team can you share any idea to handle dynamic row create in JQX Widget Grid

    Issue –> Text-box & Dropdownlist created based on flag but unable to Edit
    code samples:-

    createeditor: function (row, cellvalue, editor) {
    var ctl = $(‘#jqx_List_Grid’).jqxGrid(‘getcellvalue’, row, ‘ObjField’);
    if (ctl == ‘T’) {
    editor.jqxNumberInput({ decimalDigits: 0, digits: 6, min: 0, inputMode: ‘simple’, });
    }
    else if (ctl == ‘D’) {
    var source = [{ value: 1, label: ‘Yes’ }, { value: 0, label: ‘No’ }];
    editor.jqxDropDownList({ source: source, displayMember: ‘label’, valueMember: ‘value’, dropDownHeight: 50 });
    }
    },


    Todor
    Participant

    Hello Ethirajram,

    Please, share a jsfiddle/codepen example which demonstrates your idea then we would be in greater help.

    Best Regards,
    Todor

    jQWidgets Team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.