jQWidgets Forums

jQuery UI Widgets Forums Grid Aligning Column Headers

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Aligning Column Headers #4796

    jmarais
    Participant

    Apologies if this has been answered before but I seems to be unable to get an answer. I want to align the headers of some columns in the centre while I align the column contents to the right. It is easy achievable using plain html but when I use the cellsalign method it works as wanted for the column contents, but I tried textalign and other things for the header itself, with no success. It centre alignment possible and how do I go along doing it?
    Thanks!

    Aligning Column Headers #4802

    Peter Stoev
    Keymaster

    Hi jmarais,

    Center Text Alignment is still not supported. However, you can easily render the cells or columns strings in the center, by following the instructions in this help topic: jquery-grid-cellsrendering.htm.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Aligning Column Headers #4804

    jmarais
    Participant

    Thank you for the response and I did see in the documentation that you align them either left or right but the suggested example is centring them. I do have a question (sorry if it is a bit elementary) but I do have more and more rendering functions, how much overhead is these renderings putting on the rendering of the grid and the page and possible slowing it down?

    Aligning Column Headers #4805

    Peter Stoev
    Keymaster

    Hi jmarais,

    It depends on the custom rendering implementation, your application’s scenario, the size of your page’s DOM tree, and also from the browser that you use. With the custom rendering callback functions developers may display any HTML as a cell content. If your custom rendering increases the DOM Tree’s size or you display rich content in the cells, there will be a performance impact.

    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.