Paginal output problem

HI,
I intend to display records with a paginal output ,There are total 30 records sending back from the server side ,but the total records paginal toolbar displaying is the 0 ? and the preview,next button is grayed ,seems like paginal is not working ?

Some codes here:
function initFrame() {
var layout = new dhtmlXLayoutObject(document.body, “1C”, ‘dhx_skyblue’);
layout.setImagePath("<%=request.getContextPath()%>/component/dhtmlxGrid/imgs/");
layout.cells(‘a’).hideHeader();

        editToolbar = layout.cells('a').attachToolbar();
        editToolbar.setIconsPath(dhtmlxIconPath);
        editToolbar.addButton('btnCreate', 1, '新增', 'add.png', 'add.png');
        editToolbar.addButton('btnModify', 2, '修改', 'edit.png', 'edit.png');
        editToolbar.addButton('btnDelete', 3, '删除', 'delete.png', 'delete.png');
        editToolbar.addButton('btnExport', 4, '导出', 'export.png', 'export.png');
        editToolbar.attachEvent("onClick", onToolbarButtonClick);


        btsGrid = layout.cells('a').attachGrid();

        statusBar = layout.cells('a').attachStatusBar();
        statusBar.setText("<div id='recinfoArea'></div>");	
        var url = commonUrl + "?method=getGridHeader&formName=findBtsByBsc&componentName=querybybsc";
        dhtmlxAjax.post(url, null, function(loader) {
            var hwc = loader.xmlDoc.responseText;
            btsGrid.setSkin(dhtmlxSkinName);
            btsGrid.setImagePath(dhtmlxGridImagePath);
            setGridHeaderAndColumn(btsGrid, hwc);
            btsGrid.enableEditEvents(false,false,false);
            //added to support the click event! for showing the property 
            btsGrid.attachEvent("onRowSelect", function(id, ind) {
            	showResById(contextPath, id);
	        });
            btsGrid.attachEvent("onRowDblClicked", function(rId,cInd){
            	onShowResDetail();
            });
            btsGrid.enableMultiselect(true);
            btsGrid.enablePaging(true, 40, 2, "recinfoArea");
            btsGrid.setPagingSkin("toolbar","dhx_skyblue");
            btsGrid.init();

            loadBtsList();
        });

    } 

anybody can help?
Thanks in advance!

Unfortunately it’s not available to reconstruct the issue localy.
Your html works well.
Please provide a complete demo to reconstruct an issue.