jQWidgets Forums

jQuery UI Widgets Forums Grid How to put icon in jqxGrid button

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • How to put icon in jqxGrid button #58678

    Adarsha
    Participant

    Hi,

    I am using below code to create a grid. I wonder is it possible to put “icon-delete.png” in Comd column, instead of “Del” ?

    $(“#jqxfilselgrid”).jqxGrid({
    theme: ‘fresh’,
    width:660,
    source: dataAdapter,
    columnsresize : true,
    selectionmode: ‘singlerow’,
    autoheight: true,
    columns: [
    {
    text: ‘Comd’,
    columntype: ‘button’,
    datafield: ‘com’,
    cellsrenderer: function ()
    {
    return “Del”},

    buttonclick: function(test) {
    var id = $(“#jqxfilselgrid”).jqxGrid(‘getrowid’, test);
    var commit = $(“#jqxfilselgrid”).jqxGrid(‘deleterow’, id);
    }
    },
    { text: ‘File Library’, datafield: ‘flib’},
    { text: ‘File Name’, width: 100, datafield: ‘fname’},
    { text: ‘File Text’, width: 150, datafield: ‘ftext’},
    { text: ‘File Type’, width: 150, datafield: ‘ftype’}
    ]
    });
    });

    How to put icon in jqxGrid button #58679

    Peter Stoev
    Keymaster

    Hi Adarsha,

    At present, you can display text only in the button column.

    Best Regards,
    Peter Stoev

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

    How to put icon in jqxGrid button #58680

    Adarsha
    Participant

    okey.. thanks !

    it would have been nice to have it soon.. any idea is there any work going on it?

    How to put icon in jqxGrid button #58695

    Peter Stoev
    Keymaster

    Hi Adarsha,

    For now, we don’t have work item about this. We will consider it for future updates.

    Best Regards,
    Peter Stoev

    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.