jQWidgets Forums

jQuery UI Widgets Forums Grid Open edit window from an image

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Open edit window from an image #4810

    jmarais
    Participant

    I want to have a similar action as in the example where you have an edit popup window but I want to click on an image rather then an edit button in a grid cell. I do have a cellsrenderer function as follow:

    var actionrenderer = function (row) {
    return ‘‘;
    };

    and I have similar function which have the following code:

    var buttonaction = function (row) {
    $(“#popupWindow”).jqxWindow(‘show’);
    };

    as well as the rest to display the edit window. I tried many variations of the renderer function without any success.

    I will appreciate any help.

    Open edit window from an image #4835

    Peter Stoev
    Keymaster

    Hi jmarais,

    I suggest you to handle the ‘cellclick’ event.

    For example:

    $("#jqxgrid").bind("cellclick", function (event) {
    var column = event.args.column;
    var rowindex = event.args.rowindex;
    var columnindex = event.args.columnindex;
    });

    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.