cloudflarearchive / backgrid

Finally, an easily stylable semantic HTML data grid widget with a Javascript API that doesn't suck.
http://backgridjs.com
MIT License
2.01k stars 325 forks source link

Conditional Cell Processing #670

Open jayanthrajpramuk opened 7 years ago

jayanthrajpramuk commented 7 years ago

Hello ,

I have a table which has around 50 Columns . And i have used 'renderable' property to either show or hide the columns from the table , and it works fine. (Hide / Show of columns)

But my concern here is , even though we have 'renderable' as false for certain columns , the cell rendering part still happens , which is actually consuming lot of time.

Example :

       {
        name : 'staAcceptedDate',
        cell : function(options)  {
        // we have heavy processing logic here.(3-4 Seconds)
                     },
        renderable : false,
        headerCell : CustomHeaderCell
        }

Is there any way , we can restrict even processing of cells whenever we have renderable as false.