jQWidgets Forums

jQuery UI Widgets Forums Grid Grid scroll style problem

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Grid scroll style problem #78905

    paprika0712
    Participant

    Hello,

    I have to style the grid cell-s! The problem is that i have to design not only a single cell, but if for example the cell value is “david” then, it might be able to style the whole row or column which the cell is. I could menage to do all this inside the cellrenderer function calculate the style if neccessary and return this return '<div class="jqxDefaultCell" id="' + row + '_' + cellPos + '" style="' + style + '">' + value + '</div>';

    Working correctly as i want it to. But when i scroll on the page it just removes the style from the div(not the attribute but its value is set to “”.)

    Could you explain me what happens when the scroll event is called ? when the cellrenderer function is called(even on scroll event, it not always seems to be called.)? maybe could i do something like rendering all the list at the begining and then not rendering the new cells which we have just scrolled to?

    Grid scroll style problem #78965

    Peter Stoev
    Keymaster

    Hi paprika0712,

    cellsrenderer is called when a cell needs to be re-rendered. In scrolling some cells especially the new cells for the view call the callback function because they should be rendered. I don’t know what’s your style but for custom css classes, the cellclassname column property is available.

    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.