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
479
CSOM - Can I hide/display a column client side?
posted

I feel like an idiot posting this question but I though at the end of the day it might be useful to some other lost developer soul out there...

I thought it should be trivial task, but browsing the CSOM online help here:

http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR35 

didn't help me much should I be looking at another url for Infragistics35.Web.v11.1?

Also for some reason the utility function to get the grid reference is not available on my page as typeof(igtbl_getGridById) returns undefined

Any ideas what I can try and most of all is it possible to show/hide a column on the client side?

Thank you

Emil

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    Hi Emil,

    The piece of code you have igtbl_getGridById, is for the UltraWebGrid.  The WDG and WHDG are based off the Microsoft AJAX standard and are therefore found using $find(id).  Once you have the grid, find the column in the row island of intereset and hide it.  For example:

    grid.get_gridView().get_columns().get_column(0).set_hidden(true); // for WHDG in top level

    grid.get_columns().get_columnFromKey(key).set_hidden(true);// for WDG

    regards,
    David Young 

Children