i have a Grid with diffrenet data type(checkboxes, dropdowns, text fields…)
i have 2 questions:
for some reason the check box is always checked ,when i looked at the xml file i figured out that the check box has this False value with Capital F, when i changed to false it works fine,
but the problem is that the values are coming from the database as (0,1) value and it chaned right away to True,False,
do we have any other solution for this issue except hard coded it? thank you.
the second issue that i have DataProcessor to save data it works fine except after saving data it gives me error (null or not an object) even it did save the data correctly. wheni use dataproccessor_Debug , everything works fine
so what do you think?
thank you very much for you help .
value with Capital F, when i changed to false it works fine
The recommended values for checkbox states are 0 and 1
>>do we have any other solution for this issue except hard coded it?
There is no way to customize default values, the only solution ( except of code modification ) would be creation of custom excell on base of “ch”, which will use similar logic but different default values.
>>the second issue that i have DataProcessor to save data it works fine except after saving data it gives me error
Do you have any warning messages in debug output?
The issue can be caused by next issues
a) incorrect value of sid attribute ( not existing ID )
b) incorrect content type of response ( must be text/xml, with different content type IE may have problems with response parsing )
c) custom calls of dataprocessor’s API with incorrect parameters
If issue still occurs - please try to include attached js file and send back the debug output generated by it.
dhtmlxdataprocessor_debug.zip (1.81 KB)
after i download the dataprocessor_debug.js that you sent me ,
it gave me this message: (i will remind you again with the js error that it shows after the update is done is ‘null’ is null or not an object)
ID:5 Status: updated
Current mode: cell Log:
row 5 marked as updated
Initiating data sending for 5
Server url: actionCarrier.asp?
server response received
fallback to low level parsing
the file that does the update is an asp file: and it has in the begining of the page these 2 lines:
Response.AddHeader “Pragma”, “no-cache”
Response.AddHeader “cache-control”, “no-store”
and at the end after the update is done
Response.ContentType = “text/xml”
<status value="<%=mySQL %>"/>
a) you need to have
Response.AddHeader “Content-type”, "text/xml"
to allow correct processing on client side
b) dataprocessor awaits response in specific format
dhtmlx.com/docs/products/dhtmlxG … aprocessor
thank you very much for you help.
it works fine now.