I'm currently looking at koGrid to render dynamic data grids, and I need some customization.
For example, I'd like to show and hide columns without making use of the default columns menu.
This is the HTML output of that columns menu:
<div data-bind="visible: showColumnMenu">
<span class="kgMenuText">Choose Columns:</span>
<ul class="kgColList" data-bind="foreach: nonAggColumns">
<li class="kgColListItem">...</li>
</ul>
</div>
As you can see, the foreach binding makes use of the nonAggColumns
property. If you'd look at the koGrid library, this property is defined on window.kg.Grid
. I'd like to be able to access this property (and others of the kg.Grid) from outside of the koGrid's context.
Has anyone got an idea on how to achieve this? Any help greatly appreciated!