jQWidgets Forums

jQuery UI Widgets Forums Grid Button column – button in only some rows

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 1 month ago.

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

  • Fortech
    Participant

    I have a grid and am using the ‘button’ column type to edit the data. In my cellsrenderer, I return the string ‘Edit’, and get a button in every row. Is there a way to have buttons in only some rows? I tried returning null or ” but neither worked. Or should i not be using the ‘button’ column type and instead do this another way?

    BTW, in the grid API documentation, under columns, it lists 9 types but does not include ‘button’ (that was in a sample)

    We recently bought a development license – jQWidgets is a great package. Thanks,

    lee robie
    Cincinnati, Ohio USA


    Peter Stoev
    Keymaster

    Hi lrobie,

    I am afraid that it is not possible to render a jqxButton only in some of the cells. That is valid for the “checkbox” column, too. As a workaround, you can set the “cellsrenderer” property of your column to point to a “cellsrenderer” callback function which is implemented in such way that it returns the standard Button tag only for some specific rows and “” for the rows in which you do not want to have a button. That also means that the returned HTML should contain the “onclick” event definitions.

    Best Regards,
    Peter Stoev

    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.