Categories | Question details Back To List | ||
dhtmlXGridObject.cells().getValue() acting differently between IE and FF I have a string like "ABC'DE" and I use global replace function to make the string becomes "ABC'DE". Then I pass this converted string to dhtmlXGridObject.cells(...).setValue(). But when I call dhtmlXGridObject.cells(...).getValue(), I'm getting "ABC'DE" in IE and "ABC'DE" in FF. How do I handle this to make my code works for both IE and FF? Thanks. Answer posted by Support on Feb 20, 2009 05:08 You can use pure text column types ( edtxt,rotxt,txttxt ) which works the same as normal one (ed,ro,txt ) , but doesn't use html formatting. Answer posted on Feb 20, 2009 07:18 This doesn't solve my problem. To address my problem, I only extracted a little part as an example. I'm not just simply getValue() from a predefined grid object. Based on each row's condition, I need to set different type for the cells on the same column - for this case, I need to set some image link to the cell, where the problem comes from. So from what you're saying, they do acting differently - am I getting it right? Do you have a better solution for my case? Thanks. Answer posted by Support on Feb 23, 2009 08:13 >>they do acting differently By default grid store data as html string , and IE process it differently than FF ( the difference mostly in special characters handling, IE convert them to entities automatically ) >>Do you have a better solution for my case? If you will use any of text types as default one ( "rotxt" for example ) data will be unchanged till the moment when you need to change column type to different one. j |