Hi,
I am using DHTMLX Suite 3.6 Professional and I am experiencing the following issue when I attempt to delete a row from the grid.
This is the process I am following:
- Initialize grid and data processor as shown below (some events removed to hide implementation details):
[code]
dhtmlxGrid = new dhtmlXGridObject(‘gridbox’);
dhtmlxGrid.setImagePath(“dhtmlxSuite/dhtmlxGrid/codebase/imgs/”);
var flds = “#master_checkbox,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O”;
dhtmlxGrid.setHeader(flds);
dhtmlxGrid.setInitWidths(“30,70,90,90,100,100,100,90,180,120,50,70,70,70,70,80,80”);
dhtmlxGrid.setColAlign("left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left");
dhtmlxGrid.setColTypes("ch,ro,dhxCalendar,dhxCalendarA,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro");
dhtmlxGrid.setColSorting("na,str,date,date,str,str,str,str,str,str,str,str,str,str,str,str,str,str");
dhtmlxGrid.setDateFormat("%m/%d/%Y");
dhtmlxGrid.setSkin("modern");
dhtmlxGrid.selMultiRows = true;
dhtmlxGrid.enableSmartRendering(true);
dhtmlxGrid.enableKeyboardSupport(true);
dhtmlxGrid.enableBlockSelection(true);
dhtmlxGrid.forceLabelSelection(true);
dhtmlxGrid.enableEditEvents(true, false, false);
dhtmlxGrid.setSizes();
dhtmlxGrid.splitAt(4);
dhtmlxGrid.init();
dp = new dataProcessor(url);
dp.init(dhtmlxGrid);
dp.setTransactionMode("POST",true);
dp.setUpdateMode("off");
dp.enableDataNames(true); [/code]
- Then delete the row from the grid and send data to the server.
[code] function doDeleteRow() {
dhtmlxGrid.deleteSelectedRows();
var params = '?pageAction=deleteStores&maskedCd=' + combo.getSelectedValue();
dp.serverProcessor = actionUrl + params;
dp.sendData();
}[/code]
- Call a Stored Proc to delete the entry from the database and return the following response to the client:
<?xml version='1.0' ?><data><action type='delete' sid='6059' tid='6059'></action></data>
The row is deleted from the grid but the following Javascript error is produced causing errors on the page:
‘this._fillers.length’ is null or not an object
When I disable smart rendering mode the row is deleted without error.
Could you please point me in the right direction for what might cause this type of error?
Thanks,
David