I guess i found a bug on add row into a grid. I reproduce in VisualDesigner.
If you use the filter (#text_filter), and after filter you addRow in grid, the new row is added normally in grid, but if you use the filter again the new row added disapper. How solve this problem?
[code]dhtmlx.image_path=’./codebase/imgs/’;
var main_layout = new dhtmlXLayoutObject(document.body, '3E');
var a = main_layout.cells('a');
a.hideHeader();
var grid_1 = a.attachGrid();
grid_1.setIconsPath('./codebase/imgs/');
grid_1.setHeader(["Column 1","Column 2","Column 3"]);
grid_1.setColTypes("ro,ro,ro");
grid_1.attachHeader(["#text_filter","#text_filter",""]);
grid_1.setColSorting('str,str,str');
grid_1.enableSmartRendering(true);
grid_1.init();
grid_1.load('./data/grid.xml', 'xml');
grid_1.attachEvent('onRowAdded', function(id){
alert('onRowAdded');
});
var toolbar_2 = a.attachToolbar();
toolbar_2.setIconsPath('./codebase/imgs/');
toolbar_2.attachEvent('onClick', function(id){
grid_1.addRow(grid_1.uid(), ["000","111","222"])
});
toolbar_2.loadXMLString('<toolbar><item type="button" id="btnAddRow" text="Add row" /></toolbar>', function(){});
var b = main_layout.cells('b');
b.collapse();
var c = main_layout.cells('c');
c.collapse();[/code]