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
460
Setting column format in the hierarchicalgrid
posted

Hi 

I am trying to set the column format in the hierarchical grid but I fail to get the format to apply and I do not get any error messages explaining what I am doing wrong. The following is a snipplet of my code.

Best Regards

Fredrik

var jsonSchema = new $.ig.DataSchema("json", {
fields: [topLevel.metaData.fields]
});

module.setDataSource = function (data, tableId, jsonSchema ) {
$("#" + tableId).igHierarchicalGrid({
width: "100%",
dataSource: data,
animationDuration: 100,
dataRendering: module.hierarchicalGridRendering,
schema:  jsonSchema ,
features: [
{
name: 'Paging',
type: "local",
showPageSizeDropDown: false,
pageSize: 80
},
{
name: "Resizing"
}
],
autoGenerateLayouts: true
});
};

 

Where the json structure looks something like this:

topLevelMetaData { schema { fields[0] { {name: someName, type: someType}, ...,  {name: someName, type: someType}}}}

Parents Reply Children
No Data