jQWidgets Forums

jQuery UI Widgets Forums Grid cellsrenderer causes vertical align to stop working

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

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

  • swarren
    Participant

    I have a jqxGrid setup with autorowheight and one of the columns need to be a link to a different page so I have the following:

    
    var resolvedRenderer = function (row, columnfield, value, defaulthtml, columnproperties) {
        var id = $('#feedbackGrid').jqxGrid('getcellvalue', row, 'issueId');
        
        var url = '/issueresolution/viewhistory/id/' + id;
        
        return '<a href="' + url + '" class="openInDialog">' + value + '</a>';
    }

    I’ve also tried the jqx.dataFormat.formatlink function and it results in the same problem.

    The problem is that when I define a cellsrenderer the values are no longer center aligned vertically (left column).

    problem

    This even happens if I return the defaulthtml value. Is there any way to fix this?


    Peter Stoev
    Keymaster

    Hi swarren,

    cellsrenderer overrides the Grid’s default cells rendering. This means that your custom function should take care about the rendering i.e layout and html of the cell.

    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.