don't use enableSmartRendering on dhtmlxGrid

I don’t use property enableSmartRendering for Load bigest dataset. Alert problem is Object doesn’t support the property or method. I’m programming code UI this.

document.writeln("<link href=’./dhtmlx/dhtmlxgrid.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<link href=’./dhtmlx/skins/dhtmlxgrid_dhx_skyblue.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<script src="./dhtmlx/dhtmlxcommon.js">");
document.writeln("<script src="./dhtmlx/dhtmlxgrid.js">");
document.writeln("<script src="./dhtmlx/dhtmlxgrid_srnd">");
document.writeln("<script src="./dhtmlx/dhtmlxgridcell.js">");
document.writeln("<link href=’./dhtmlx/skins/dhtmlxwindows_dhx_skyblue.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<link href=’./dhtmlx/dhtmlxwindows.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<script src="./dhtmlx/dhtmlxwindows.js">");
document.writeln("<script src="./dhtmlx/dhtmlxcontainer.js">");
document.writeln("<div id=“gridboxAttr” style=“width:100%;height:100%;background-color:white;”>");

code dhtmlXwindow

var w3;
w3 = dhxWins.createWindow("w3", 20, 20, 800, 600);
dhxWins.window('w3').hide();
w3.setText("Attribute");
w3.denyPark();
w3.keepInViewport(true);
w3.attachObject('gridboxAttr');
dhxWins.window('w3').attachEvent("onMaximize", WindowOnMaximize);
dhxWins.window('w3').setMinDimension(400, 300);
dhxWins.window('w3').attachEvent("onClose", WindowOnClose);
dhxWins.window('w3').center();

code js call property

function evAttribute(cgid, type) {
    var xmlHttp = getXMLHttp();
    var url = "GetAttribute.aspx" + "?CGID=" + cgid + "&Type=" + type + "&flag=" + 0;

    xmlHttp.open("GET", url, true);
    xmlHttp.onreadystatechange = function() {
        if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {

            var xmlAsss = xmlHttp.responseXML;
            var domAsss = xmlAsss.documentElement.getElementsByTagName("ROAD");
            for (var i = 0; i < domAsss.length; i++) {
                var domAss = domAsss[i];
                var COLUMN = domAss.getElementsByTagName("COLUMN")[0].firstChild.nodeValue;
                var WIDTHS = domAss.getElementsByTagName("WIDTHS")[0].firstChild.nodeValue;
                var SORT = domAss.getElementsByTagName("SORT")[0].firstChild.nodeValue;
                var ALIGN = domAss.getElementsByTagName("ALIGN")[0].firstChild.nodeValue;

                mygrid1 = new dhtmlXGridObject('gridboxAttr');
                mygrid1.setImagePath("./dhtmlx/imgs/");
                mygrid1.setHeader(COLUMN);
                mygrid1.setInitWidths(WIDTHS);
                mygrid1.setColSorting(SORT);
                mygrid1.setColAlign(ALIGN);
                mygrid1.init();

                setTimeout(function() {
                    url = "GetAttribute.aspx" + "?CGID=" + cgid + "&Type=" + type + "&flag=" + 1;
                    mygrid1.setSkin("dhx_skyblue")
                    mygrid1.enableSmartRendering(true, 50); //error
                    mygrid1.load(url);

                    setTimeout(function() {
                        dhxWins.window('w3').show();
                        dhxWins.window('w3').bringToTop();
                    }, 1000);
                }, 500);

            }
        }
    }

    xmlHttp.send(null);
}

Can u help me for problem . i see js datagrid have method. i don’t no problem

Alert problem is Object doesn’t support the property or method
You have to include dhtmlxgrid_srnd.js file to your page

I’m include library file dhtmlxgrid_srnd.js on page but Alert problem is Object doesn’t support the property or method . i don’t not Solve problem

This issue may occur only if one of the necessary files is not included

document.writeln("<link href=’./dhtmlx/dhtmlxgrid.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<link href=’./dhtmlx/skins/dhtmlxgrid_dhx_skyblue.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<script src="./dhtmlx/dhtmlxcommon.js">");
document.writeln("<script src="./dhtmlx/dhtmlxgrid.js">");
document.writeln("<script src="./dhtmlx/dhtmlxgrid_srnd">");
document.writeln("<script src="./dhtmlx/dhtmlxgridcell.js">");
document.writeln("<link href=’./dhtmlx/skins/dhtmlxwindows_dhx_skyblue.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<link href=’./dhtmlx/dhtmlxwindows.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<script src="./dhtmlx/dhtmlxwindows.js">");
document.writeln("<script src="./dhtmlx/dhtmlxcontainer.js">");
document.writeln("<div id=“gridboxAttr” style=“width:100%;height:100%;background-color:white;”>");

I’m include library file for use SmartRendering. can u see line code is Bold

document.writeln("<link href=’./dhtmlx/dhtmlxgrid.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<link href=’./dhtmlx/skins/dhtmlxgrid_dhx_skyblue.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<script src="./dhtmlx/dhtmlxcommon.js">");
document.writeln("<script src="./dhtmlx/dhtmlxgrid.js">");
document.writeln("<script src="./dhtmlx/dhtmlxgrid_srnd">");
document.writeln("<script src="./dhtmlx/dhtmlxgridcell.js">");
document.writeln("<link href=’./dhtmlx/skins/dhtmlxwindows_dhx_skyblue.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<link href=’./dhtmlx/dhtmlxwindows.css’ rel=‘stylesheet’ type=“text/css” />");
document.writeln("<script src="./dhtmlx/dhtmlxwindows.js">");
document.writeln("<script src="./dhtmlx/dhtmlxcontainer.js">");
document.writeln("<div id=“gridboxAttr” style=“width:100%;height:100%;background-color:white;”>");

I’m include library file for use SmartRendering. can u see line code is Bold

Are you sure that enableSmartRendering(true) returns this issue? Check at which line does issue point you.

i use enableSmartRendering on datahgrid. i’m set parameter true but it’s problem same alert.
i check function on another application it’ work but i implement In conjunction with Microsoft Ajex use asp.net don’t use dhtmlxgrid_srnd.js. you can help me
Note. I develop web application use ArcGIS Server