jQWidgets Forums

jQuery UI Widgets Forums Grid dynmically hiding button

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • dynmically hiding button #29192

    timo75
    Participant

    I’m using columntype: button to generate a “delete” button:
    { text: ”, datafield: ‘delete’, columntype: ‘button’, width: 70, filterable: false, sortable: false, menu: false, cellsrenderer: function () {
    return “Delete”;
    }, buttonclick: delete_record
    },

    I’m wondering what’s the best way to hide the button dependend on another column’s value. Can I do this with a cellsrenderer? Or use a css class?

    dynmically hiding button #29214

    Dimitar
    Participant

    Hello timo75,

    Unfortunately, you cannot remove the button from a particular row.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    dynmically hiding button #29215

    timo75
    Participant

    Thanks for the quick answer. So I suppose that columntype: “button” is not an editor from the technical point of view that could be set with columntype: ‘custom’ ?

    dynmically hiding button #29264

    Dimitar
    Participant

    Hi timo75,

    You are correct. In this case the buttons are not “editors”.

    Best Regards,
    Dimitar

    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.