Categories | Question details Back To List | ||
Checkbox missing when adding a new row into a dhtmlxGrid. Hi all, I have actually an issue when I try to add a new row into a dhtmlxGrid object. My problem is about checkboxes. If the first column is defined as a 'ch' column, everything works just fine but if I decide to move this column from the first position to another one, checkbox is not displayed. In order to reproduce this bug, you can try to install the sample version with php and Mysql (http://scbr.com/docs/products/dhtmlxGrid/download/dhtmlxgrid_with_db_php.zip) and change the index.html file on line 31. Just change an 'ed' column to a 'ch' column and see the result when you try to add a new row. Is it a bug or just something I don't have understood ? Thanks and congratulations for all you tools : they are great !! Rémi (from France) Answer posted by Remi on Oct 01, 2007 09:12 Any news ? Answer posted on Oct 01, 2007 13:13 When you adding new row and not specifing cell value at all ( there is no related "cell" element in XML, or related value in array of values ) - cell constructor not called at all, and as result nothing rendered in cell. To resolve issue always provide values for all cells, or just use default values mygrid.setColTypes("ed,ro,ch[0]");//value in [] will be used as default for related column. Answer posted by Rémi on Oct 01, 2007 16:56 Ok, thanks. I've just tried and it works just fine ;) Nevertheless, I haven't seen that into the official documentation. I think it could be very helpful to add it in order to ease your product's comprehension. Thanks again :) Rémi |