Hello all,
i get a errors in IE 8 when i try to change the data source from Jquery function,
The IE errors:
Init the grid Code:
$("#grid-srs-recruiting").igHierarchicalGrid({ initialDataBindDepth: 1, responseDataKey: 'NewDataSet.Table', width: "1100px",
autoGenerateColumns: false, primaryKey: "SR_ID", columns: [ { headerText: "SR_ID", key: "SR_ID", dataType: "string" }, { headerText: "Type", key: "Type", dataType: "string" }, { headerText: "Duration", key: "Duration", dataType: "string" }, { headerText: "Site", key: "Site", dataType: "string" }, { headerText: "Owner", key: "Owner", dataType: "string" }, { headerText: "Resources", key: "Resources", dataType: "number" }, { headerText: "Roles", key: "Roles", dataType: "string" }, { headerText: "Start", key: "Start", dataType: "string" } ], features:[ { name: "Paging", type: "local", pageSize: 15 }, { name : "Sorting" }, { name: "Filtering", allowFiltering: true, caseSensitive: false, }, { name : 'Resizing' }, { name: 'Tooltips' } ],
autoGenerateLayouts: true, columnLayouts: [ { key: "Table1", responseDataKey: '', autoGenerateColumns: false, primaryKey: "SR_ID", foreignKey: "SR_ID", columns: [ { headerText: "Role", key: "Role", dataType: "string" }, { headerText: "Role_id", key: "Role_id", dataType: "string" }, { headerText: "Req#ofResome", key: "RequestedNumofResume", dataType: "string" }, { headerText: "Site", key: "Site", dataType: "string" }, { headerText: "Submitted", key: "Submitted", dataType: "number" } ] } ] });
Jqury code that set the data source:
$.post(url, {status : status}, function(data) { switch (status) {
case 'RECRUITING' : { //alert (data.d); $("#grid-srs-recruiting").igHierarchicalGrid({ odata: false, dataSourceType: 'json', dataSource: data.d }); break;}
});}
Remark:
this work perfect in (chrome, firefox, mozilla)
thanks for you help,
Yaniv
i try to change jqury version (1.4.4 / 1.7.1 / 1.8.0 / etc..)
this still not working on IE 8 but the error code change it's show me my Json (weird) in the the error popup and say that i have problem with the Jquery version.
in one of the jquery version i don't get any error but i don't get the data also.
thanks again,
Hi Yaniv,Since I answered your duplicate thread under the "igGrid" thread space, I'll quote my answer here:
Borislav Traikov said:Hi Yaniv,The problem stems from rebinding the grid under IE8 - the browser has internal limitations that can break recursions and expose memory leaks.Our development team is aware of the problem and a fix is on the way.If all goes OK, you will be able to have the fix in the upcoming Service Release.Thank you for understanding the matter.Cheers,Borislav
Hope it helps