jQuery UI Widgets Forums Grid CheckBox in new JxGrid Row Inline

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • CheckBox in new JxGrid Row Inline #80381

    robynho85
    Participant

    Hi, i need to include a checkbox in a column of JQXGrid. For the visualization and the edit all is perfect but for the new row inline in my column i want the checkbox. I have done this for the dropdownlist but i don’t know how to do for checkbox.

    Actually the column is:

    {
                            text: 'Att', datafield: 'Status', width: '2%', columntype: 'checkbox', filtertype: 'bool',
                            createEverPresentRowWidget: function (datafield, htmlElement, popup, addCallback) {
                                inputTag.jqxCheckBox();
                                return inputTag;
                            },
                            rendered: function (element) {
                                $(element).jqxTooltip({ position: 'mouse', content: "Attivo" });
                            }
                        },
    CheckBox in new JxGrid Row Inline #80415

    Dimitar
    Participant

    Hi robynho85,

    Here is how to create a jqxCheckBox in createEverPresentRowWidget:

    createEverPresentRowWidget: function (datafield, htmlElement, popup, addCallback) {
        var checkbox = $('<div style="margin: 7px;"></div>').appendTo(htmlElement);
        checkbox.jqxCheckBox();
        return checkbox;
    },

    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.