Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by FranX on Dec 02, 2009 08:39
open dhtmlx forum
dhxCalendar in grid

Hi,

I've got a grid loaded by XML with of the following cells:
col4: <column id="Pieces" width="55" type="ro" sort="int" align="right">Pieces</column>
col5: <column id="Delivery" width="75" type="ro" sort="date" format="%Y-%m-%d" align="right">Delivery</column>

Later on in the application, depending on what's done, I want to change the type (excell) of the field using:
grid.loadXML("webservice.php?type=dhtmlx&report=sample_order_row_list&where[o.sampleorder_id]=" + id, function() {
if (edit==true) {
ordergrid.setColumnExcellType(4, "ed");
ordergrid.setColumnExcellType(5, "dhxCalendar");
}
});

Now after doing this the values of column 5 disapear while the values in column 4 remain there and are normally editable.
So changing a column type from 'ro' to 'ed' works fine but changing it from 'ro' to 'dhxCalendar' fails and deleted the values in it!

What's the solution for this?
Answer posted by dhxSupport on Dec 03, 2009 01:54
Unfortunately we cannot reproduce this issue locally. What version of dhtmlxGrid do you use? Can you please provide example where we can reproduce this issue. (You can send such example directly to the support@dhtmlx.com)
As a workaround if you need to disable editability of hole grid you can use setEditable(false) method. Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:api_method_dhtmlxgridobject_seteditable
Answer posted by FranX on Dec 03, 2009 03:12
Thanks for your answer, tonight we upgraded from 90301 Pro to 91111 Pro which solved the mentioned problem for us!