[progress Communities] [progress Openedge Abl] Forum Post: Re: Hide Columns At Run-time

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Hello Bert, The hideColumn() method is available from the grid component. Depending on the type of view that you are using, you could access the grid from the scope reference or by using angular.element(). If you are using a view created using the Blank view option, you can get the grid component by using its ID: angular.element("#grid0").data("kendoGrid").hideColumn(0); If you are using a pre-defined view, you could access the grid from the scope reference or using a the following code: angular.element("[kendo-grid='vm.widget']").data("kendoGrid").hideColumn(0); Some key here, is that the grid component should be instantiated by the time that you execute this code. The onShow event executes prior to the instantiation of the grid. Depending on your requirements, you could associate a data bound handler to the grid, use angular.$watch() to determine when the grid is instantiate, or listen to the kendoWidgetCreated event to know when the widget is created. Please let me know where do you need to call hideColumn() and can give you a sample. I hope this helps, Edsel

Continue reading...
 
Status
Not open for further replies.
Back
Top