jQuery UI Widgets Forums TreeGrid Problem with cellsRenderer property

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Problem with cellsRenderer property #63492

    Sairam
    Participant

    Hi,

    My Tree Grid turned slow to load when I use the cellsRenderer property to return a HTML content, when the content is removed the tree grid loads pretty better. Please help.

    ` cellsRenderer: function (rowKey, dataField, value, data) {
    //debugger;
    if (data.level == 0) {
    var DisplayHTML = “” +
    “<div class=’ActivityMenu’>

      ” +

    • v” +
      “<ul Group='” + dataField + “‘ RowKey = ” + rowKey + “> <li ElemId=’COPY’>Copy Value
    • <li ElemId=’PASTE’>Paste Value <li ElemId=’UPCURR’ style=’color:grey’>Upload All Values <li ElemId=’UPUPD’ style=’color:grey’>Upload Selected Values <li ElemId=’SAVE’>Save <li ElemId=’RESET’>Reset to default

    ” +
    “</div>”;
    return DisplayHTML;
    }
    else {
    return value;
    }

    Problem with cellsRenderer property #63495

    Peter Stoev
    Keymaster

    Hi Sairam,

    If you do something which slows down the widget within the cellsRenderer, you’ll slow it down. I would suggest you to avoid doing much calculations within a function which is called for each cell.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Problem with cellsRenderer property #63501

    Sairam
    Participant

    Hi Peter,

    All I do is have a menu “<div class=’ActivityMenu’>” and Hava an Img tag whick opens a popup. Is this recommended ?

    Thanks.

    Problem with cellsRenderer property #63506

    Peter Stoev
    Keymaster

    Hi Sairam,

    I don’t see a problem and why that will affect the performance then. I think that it won’t because it does not matter whether cellsRenderer is used or not unless you do something in the cellsRenderer which slows down the things.

    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.