Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
How to hide null columns in webdatagrid
posted

How to hide null columns in webdatagrid

I had used to following code in the client side to hide null columns 

var cols = gGrid.get_columns().get_columnFromKey("reference");

cols.set_hidden(true);

However this returns the following error in IE

SCRIPT5007: Unable to set value of the property 'display': object is null or undefined

and the following error in Chrome

Uncaught TypeError: Cannot set property 'display' of null

The code works in Firefox,