jQWidgets Forums

jQuery UI Widgets Forums Grid Image in button column?

This topic contains 2 replies, has 2 voices, and was last updated by  Shaun 10 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Image in button column? #69789

    Shaun
    Participant

    Hello – I’m creating a delete button column like this:

                          { text: '', datafield: 'Edit', columntype: 'button', 
                               cellsrenderer: function () {return "X";}, 
                               buttonclick: function (row) {
                                        rowIssueID = $("#issueGrid").jqxGrid('getrowid', row);
                                        $("#issueGrid").jqxGrid('deleteRow', rowIssueID);
                                    }
                            }
    

    …but I would rather have an image than a button for the users to click. Is that possible in a jqxGrid button column?

    Image in button column? #69811

    Peter Stoev
    Keymaster

    Hi Shaun,

    You can create an Image column as shown in the Grid’s Demos page. Then handle the “cellclick” event.

    Best Regards,
    Peter Stoev

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

    Image in button column? #70033

    Shaun
    Participant

    Thanks Peter. Wasn’t sure if I missed something.

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

You must be logged in to reply to this topic.