Categories | Question details Back To List | ||
Documentation errors and link not clickable after addRow Hello! Thank you for a fantastic product (dhtmlXgrid). I have been playing around with it for a couple of days and most things work fine. I have a minor complaint in general though. Please, when you make a typo in the documentation or this knowledge base, please correct it after you are informed about it. So we don't have to repeat the same mistakes over and over again. One is setNumberFormat, where the parameters are not correct at a number of places in your documentation. Please also specify what parameters can be empty or not. This took me five hours to figure out! Thanks. Now, my problem: I have a grid with a link image, defined in XML - this works fine for existing rows. But, after adding a row the link image on the new row is not clickable, it feels disabled. The old rows still work fine. Everything else on the new row seems to work fine, except the link. mygrid.addRow(234, "Text1,<![CDATA[<a href='#' onClick='lMyClick(2);'><img class='grid_img' src='images/button.gif'></a>]]>", 2) Please help, thank you. /Hans Answer posted by Support on May 02, 2008 04:21 >>One is setNumberFormat, where the parameters are not correct at a number of places in your documentation. Sorry for inconvenience, we tries to have documentation up to date, but probably there are few outdated articles In case of setNumberFormat the documentation states correct order of parameters setNumberFormat(mask,cInd,p_sep,d_sep)
[Professional]
set mask for formatting numeric data ( works for edn excell only ) Object: dhtmlXGridObject >>I have a grid with a link image, defined in XML - this works fine for existing rows.
Topic(s): initialization; File required:dhtmlxgrid.js You need not to use CDATA sections when adding rows by javascript ( CDATA is native XML construct, which has sense only inside XML ) So the correct code will be mygrid.addRow(234, "Text1,<a href='#' onClick='lMyClick(2);'><img class='grid_img' src='images/button.gif'></a>", 2) Answer posted by Hans on May 02, 2008 05:41 1. >> documentation states correct order of parameters gc_k = "."; 25000.50 then displays correctly as 25.000,50 - German, Dutch, etc. number format. 25000.50 then displays wrongly as 25,000,50 - Alien number format ;-) >>You need not to use CDATA sections when adding rows by javascript Answer posted by Support on May 02, 2008 08:40 >>mygrid.setKDelimiter(",") >>mygrid.setDigitDelimiter(".") >>mygrid.setDateDelimiter("/") The setDateFormat and setNumberFormat , basically covers the usage of above statements >>mygrid.setTimeDelimiter(":") This one seems as a good addition for "time" excell, which uses hardcoded separator for now. We will add something similar in next version of the grid. >>There is also a bug (or lack of documentation) in that both delimiters must have a value, ie, cannot be empty. This was an unexpected usecase, the code of grid treats empty string as not defined separator and uses default one. We will fix it in next build of dhtlmxgrid. >>I think you would want to change the docs. I agree that documentation describes it very briefly and need to be extended The default setNumberFormat works correctly for locals which use dot as decimal separator ( so basically it is correct in its existing state ) If you want use comma as separator - the parameters need to reversed ( but still documentation is correct, the third parameter are group separator, the 4th parameter are decimal separator ) Answer posted on May 02, 2008 09:53 Hi again, Lets not turn this into a long thread. I just want you to support different number formats. That's it. Whole numbers: Currency values (sometimes different to the above in the same country): >>If you want use comma as separator - the parameters need to reversed ( but still documentation is correct, the third parameter are group separator, the 4th parameter are decimal separator ) That doesn't make sense. >>The setDateFormat and setNumberFormat , basically covers the usage of above statements
|