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
65
Change data source to igHierarchicalGrid don't work on IE 8
posted

Hello all, 

i get a errors in IE 8 when i try to change the data source from Jquery function,

The IE errors:  

  • popup message that say: " stop running this script ?  A script on this page is causing your web browser to run slowly ... "  
  • popup message that say: "Stack overflow at line:2" after i click "ok" i don't get the data.

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

Parents
  • 65
    posted

    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, 

    Yaniv 

Reply Children
No Data