jQWidgets Forums

jQuery UI Widgets Forums Grid render content in the columns header

Tagged: ,

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • render content in the columns header #18759

    damc
    Participant

    Hi,

    I have an image for add row button in the columns header. Code that works with 2.7 version on 2.8 doesn’t work on FireFox and Chrome (on IE works). If I inspect element (image) shows me div.iconscontainer instead of image element.

    Code:

    renderer: function () {
    return '<div style="margin:4px;float:left"><img id="addN1" src="./images/addButton.gif" alt="Add row" title="Add row"/></div>';
    }

    Thank you for your help.

    render content in the columns header #18782

    Peter Stoev
    Keymaster

    Hi damc,

    Your code will render the image in version 2.8, too. However, the iconscontainer which is part of the column is expected to be added, too.
    If you want to disable that, add “rendered” callback to the column and return true.

    Best Regards,
    Peter Stoev

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

    render content in the columns header #18802

    damc
    Participant

    Hi Peter,

    Thank you. It works if rendered function returns true.

    Best Regards,
    Damc

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

You must be logged in to reply to this topic.