jQWidgets Forums

jQuery UI Widgets Forums Grid cellclassname callback

Tagged: 

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • cellclassname callback #46736

    williamsc29
    Participant

    We are using the cellclassname callback to determine which class cells need to have and it works great for display on the web page. However when we use the export to HTML function built into the grid, when this callback is called, the “data” or fourth parameter of the callback isn’t populated with the row data. Here is our function signature…

    cellclassname: function (row, columnfield, value, rowdata) {

    When the grid renders to the screen “rowdata” is populated with the row data. When we export to HTML, the “rowdata” parameter is undefined. Is this proper behavior? BTW, we’re on 3.0.4.

    cellclassname callback #46738

    Peter Stoev
    Keymaster

    Hi williamsc29,

    By using the “row” parameter, you can get the row’s data by using the “getrowdata” method.

    Best Regards,
    Peter Stoev

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

    cellclassname callback #46740

    williamsc29
    Participant

    Yea, I’m doing that as a workaround, but was hoping to remove that overhead if possible. We have a lot of data on in the grid that uses cellclassname and cellrenderer and and I’m trying to make the callbacks as light as possible to make scrolling as smooth has possible. If the function signature as described in the documentation shows the data parameter, shouldn’t it be populated no matter when it gets called?

    cellclassname callback #46747

    Peter Stoev
    Keymaster

    Hi williamsc29,

    We will definitely check the function.

    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.