Hello,
Here is a short description about how we use KendoUI grid in our project :
- An http request is made from the browser to the server to get a JSON object that contains the grid structure (datatype, name, etc...)
- The grid is dynamically built with the JSON object content
- Some column must be hidden just after the grid construction, so, we use databound event :
When this code is processed, the grid is not visible as it is in a tabstrip component from Telerik ASP.NET Ajax.
An error is raised from hideColumn() method after this "filter" directive :
cell[0].style is undefined because the filter method return 0 element.
Could you please see if there is a simple workaround in my situation ?
Regards.
Here is a short description about how we use KendoUI grid in our project :
- An http request is made from the browser to the server to get a JSON object that contains the grid structure (datatype, name, etc...)
- The grid is dynamically built with the JSON object content
- Some column must be hidden just after the grid construction, so, we use databound event :
dataBound :
function
() {
[...]
for
(
var
i = 0; i < as_ColumnsToHide.length; i++) {
ao_Grid.hideColumn(as_ColumnsToHide[i]);
}
[...]
}
When this code is processed, the grid is not visible as it is in a tabstrip component from Telerik ASP.NET Ajax.
An error is raised from hideColumn() method after this "filter" directive :
cell = leafDataCells(container).filter(
":visible"
).eq(headerCellIndex);
cell[0].style.display =
"none"
;
cell[0].style is undefined because the filter method return 0 element.
Could you please see if there is a simple workaround in my situation ?
Regards.