jQWidgets Forums

jQuery UI Widgets Forums Angular jqxgrid row property

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxgrid row property #107016

    MrX
    Participant

    Hello!
    I change row background color after grid binding complete and use method setcolumnproperty() after event onBindingComplete.

    Object.getOwnPropertyNames(MyRowModel).forEach(key => {
    this.dataGrid.setcolumnproperty(key, “cellclassname”, function(
    index
    ) {
    // any logic if()else
    return “bg-danger-lighter”;
    });
    });

    This is not optimal if grid have many columns and items, because every cell is checked, instead of checking only rows for value. Application freezes up

    Maybe jqxgrid have another solution for this?
    jqxgrid need for setRowProperty method

    jqxgrid row property #107019

    Peter Stoev
    Keymaster

    Hi MrX,

    cellclassname can be used as a column property. You can also use the cellsrenderer function of the columns to customize the rendering of cell values.

    Best Regards,
    Peter

    jQWidgets Team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.