Categories | Question details Back To List | ||||||||||||||||||||
Headers from XML Output Hi, First of all, i find your documentation very poor. Each time i want to add something in the grid i get lost. Even if I do as stated in your documentation, i do not get correct result. The same thing happened to put headers in grid from XML Output. Is this also in pro edition? Well, i have set my mind to buy your professional edition rather than waste my time in testing with standard version. I guess you have all my requirements but before that i need to know how much efficient your support will be there?? As i already told you, the documentation you have in your website (also the downloaded one) does not include all the steps required to add any features. I also got lost in adding date calendar in grid for date field. I hope to have kind co-operation and quick response from you. Answer posted by Support on Dec 15, 2008 09:18 >> The same thing happened to put headers in grid from XML Output. In latest version of grid, structure can be defined from XML in both Pro and Standard editions. >>does not include all the steps required to add any features In case of configuration from XML full XML syntax described here http://dhtmlx.com/docs/products/docsExplorer/doc/dhtmlxxml/xmlGrid.html description of configuration from XML feature http://dhtmlx.com/docs/products/dhtmlxGrid/doc/guide.html#grid_confxml sample of configuration from XML http://dhtmlx.com/docs/products/dhtmlxGrid/samples/initialization_loading/grid_config_xml.html?un=1229361611000 is something missed? Answer posted on Dec 15, 2008 10:27 I tried your url and used full xmlversion. the url is http://dhtmlx.com/docs/products/docsExplorer/doc/dhtmlxxml/xmlGrid.html but i get 'incorrect cell type: edn i saved the xml as data.xml and called in my html file as following mygrid.loadXML("data.xml"); mygrid.xml.top="rows"; mygrid.xml.row="./row"; mygrid.xml.cell="./cell"; even when i replace 'edn' with 'ed' it gives script error. can you tell me where i went wrong? or am i going correct with xml tag definition? Answer posted by Support on Dec 16, 2008 04:49 Standard edtion of grid supports only base column types, such as ro,ed,txt,coro,co The number formatin functionality and related cell types, such as edn and ron available only in pro edition. >>even when i replace 'edn' with 'ed' it gives script error Please provide a sample of problematic XML, there must not be any problems with ed column type ( be sure that you have not unnecessary whitespaces around column type in XML ) Attachments (1)
Answer posted on Dec 16, 2008 19:41 great.. your example worked but still could not populate grid with my data. but i guess i can work on it and if any problem persists will let you know. Well i m still waiting for the following question of my first message. "I also got lost in adding date calendar in grid for date field. " how do i populate calendar when click on date field? I went through your documentation but the script file you have included is not in dhtmlxgrid. Does it needs dhtmlcalendar component to be downloaded? If yes whose common files be used?? Please guide me step by step to integrate calendar in grid. and also can't we use calendar of the dhtmlxgird's codebase folder?? thanking you... Answer posted by Support on Dec 17, 2008 01:48 >>"I also got lost in adding date calendar in grid for date field. " You need to a) in addition to existing grid's files include dhtmlxcalendar.js ( and related css ) dhtmlxgrid_excell_dhxcalendar.js b) use column type dhxCalendar c) if you are using custom data format ( default is "%d/%m/%Y" ) use grid.setDateFromat ( pro only ) to set necessary format of the date. >> but the script file you have included is not in dhtmlxgrid dhtmlxgrid_excell_dhxcalendar.js included in both pro and standard editions of grid, dhxcalendar.js is part of separate package, which can be downloaded separatly ( or, as part of dhtmlxsuite ) >>If yes whose common files be used?? dhtmlxcommon.js - common for all components Please check attached sample. Attachments (1)
Answer posted by Sishir Maharjan on Dec 17, 2008 02:08 Well i tried with my own data, but where i faced problem is when i put <rows> as parent node it works but if i change it to my costumized one it does not work. other child nodes i can set customized and it works. The problem is with the supernode only. eg. the following set works.. <rows> <record> <clm>data1</clm> </record> </rows> but if change the xml out to following it does not work <psrecordset> <record> <clm>data1</clm> </record> </psrecordset> this is how i called from html file. the xml output filename is result1.xml mygrid.loadXML("result1.xml"); mygrid.xml.top="psrecordset"; mygrid.xml.row="./record"; mygrid.xml.cell="./clm"; I have attached the html and xml file. please help me out. Attachments (1)
Answer posted by Sishir Maharjan on Dec 17, 2008 04:29 I have one more query, Seems i really get lost :). Hope you guys don't mind. I m trying to load combo data from xml but it didn't work. i went through your reference http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Combo_excell.html#grid_art_comboexcell <column xmlcontent="1" width="80" type="co" source="comboXml.xml" auto="true" align="left" sort="str">Shipping</column> gives blank and also tried <column width="150" type="combo" editable="false" source="comboXml.xml">Shipping</column> gives incorrect cell type 'combo' and ofcourse because we don't have any type defined as combo. do i need any more files to included?? i have these includes <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../../codebase/dhtmlxcalendar.js"></script> <script src="../../codebase/dhtmlxgrid.js"></script> <script src="../../codebase/dhtmlxgridcell.js"></script> <script src="../../codebase/ext/dhtmlxgrid_selection.js"></script> <script src="../../codebase/ext/dhtmlxgrid_nxml.js"></script> <script src="../../codebase/patch.js"></script> Please help me out :( Answer posted by Support on Dec 17, 2008 05:33 While it possible to configure tags used for the data loading, the XPaths for configuration are hardcoded, you can't set them from js API. ( dhtmlxgrid.js, line 3948+ - //rows/head, //rows/head/column , etc.) In your case , grid's data correctly loaded, but configuration can't be read, and as result view is empty. Answer posted by Sishir Maharjan on Dec 17, 2008 06:07 So what would be solution for loading combo from xml data and dynamic column names? I didn't understand your last reply :(. please help me with the necessary steps i need to follow. thanx. Answer posted by Support on Dec 17, 2008 07:28 >>I have one more query, Seems i really get lost :). Hope you guys don't mind. I m trying to load combo data from xml but it didn't work. >>i went through your reference Sample of grid with combo sent by email Answer posted by Sishir Maharjan on Dec 18, 2008 01:22 >>While it possible to configure tags used for the data loading, the
XPaths for configuration are hardcoded, you can't set them from js API. >>( dhtmlxgrid.js, line 3948+ - //rows/head, //rows/head/column , etc.) >>In your case , grid's data correctly loaded, but configuration can't be read, and as result view is empty. i tried to change this.xmlLoader.doXPath("//rows/head", xmlDoc) to this.xmlLoader.doXPath("//recordset/head", xmlDoc) and so on for all "//rows..." to "//recordset..." but it didn't work. Later i revert back to "//row..." now when i try to get data with head section, it requires me to have <cell>..</cell> tag for data. Is it also somewhere hard coded?? the xml without head tag works with any custom tag instead of "<cell>..</cell>". the ironic is i can put any custom tag for "<row>..</row>". Answer posted by Sishir Maharjan on Dec 18, 2008 01:34 >> Sample of grid with combo sent by email I didn't receive any email. Answer posted by Support on Dec 18, 2008 02:07 The letter was definitely sent to the email used for this post creation. If you didn't receive it - please contact us directly at support@dhtlmx.com and provide any alternative email address. |