jQuery UI Widgets Forums General Discussions HTML Tags in JQXGrid

This topic contains 3 replies, has 4 voices, and was last updated by  admin 1 year, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • HTML Tags in JQXGrid #120349



    How can we display html tags in JQXGrid cells?


    HTML Tags in JQXGrid #120350

    Yavor Dashev

    Hi geromelouie,

    The best way to have the functionality you want is to use the cellsrenderer callback of the columns property.

    I have prepared a quick code snippet on how to use it:

       columns:  [
                      { text: 'Name', datafield: 'firstname', width: 120,
                       cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties) {
                        return '<h3>' + value + '</h3>';
                      { text: 'Last Name', datafield: 'lastname', width: 120 }]
                       //Rest of your code

    Let me know if that works for you!

    Please, do not hesitate to contact us if you have any additional questions.

    Best Regards,
    Yavor Dashev
    jQWidgets team

    • This reply was modified 1 year, 11 months ago by  Yavor Dashev.
    HTML Tags in JQXGrid #120367


    This worked in jqx for years. I have been using in all my grid applications. Suddenly, after installing the latest version none of this works.

    Without any notification at all they decided to “escape” HTML characters. Frankly, this is crap. There is no reason at all to change this. Furthermore, to do so with out any warning to users is even bigger CRAP.

    HTML Tags in JQXGrid #120368


    Hi CXXXV,

    cellsrenderer and the renderer callback functions are available since many years and these expected to be used for html rendering in cells and columns. The old behavior which allowed rendering of HTML in a field which expected TEXT was wrong.

    Best regards,
    Peter Stoev

    jQWidgets Team

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

You must be logged in to reply to this topic.