Categories | Question details Back To List | ||
Vertical arrange in Grid I use Pro and Grid is a terrific tool, but now I need to display vertically. To explain: I have only one row of data and I want to display them vertically as a Form. Is that possible? Thanks, John Answer posted by Support on Jan 29, 2009 10:16 As far as I can understood, it not possible. But you can change configuration and use a single column - grid allows to define different editor types for different rows in the same column. http://dhtmlx.com/docs/products/dhtmlxGrid/samples/cell_types/pro_col_excell.html?un=1233253751000 Answer posted by j.lagos on Jan 30, 2009 01:25 Thank you, it looks like I want! But when I call loadXML('myphp.php') which return xml as your sample: <rows> <head> <column width="200" type="ro" align="left" color="#D4D0C8" sort="na">Form Fields</column><column width ="*" type="coro" align="left" sort="na">Field Values<option value="1">Worker</option><option value="2" >Office Manager</option><option value="3">Car Driver</option><option value="4">Programmer</option></column ></head><row id="1"> <cell>First, Last Name</cell> <cell type="ed">John, Bossom</cell> </row> <row id="2"> <cell>Profession</cell> <cell>1</cell> </row> <row id="3"><cell>Salary</cell><cell type="price" style="text-align:right">1500</cell></row><row id="4" ><cell>High Education</cell><cell type="ch">1</cell></row><row id="6"><cell>Age</cell><cell type="ed" >29</cell></row><row id="7"><cell>Comments</cell><cell type="txt"> Some Multiline content </cell></row ><row id="5"><cell>Color of blood</cell><cell type="cp">red</cell> </row> </rows> ... I get the very known error: Incorrect XML! If I pass the same xml text to any Xml validator, it passes with no errors. Could I missing a header or something else, I dont know. Thanks, John Answer posted by j.lagos on Jan 30, 2009 01:30 This error occurs only with mozilla/5.0 Firefox 3.0.5, and not with IE 7. Can I make any set up to Firefox to avoid this error? Thanks, John Answer posted by Support on Jan 30, 2009 01:36 The same xml work correctly locally when server from static XML file, so problem most probably caused by php script. Be sure that - correct content type use ( text/xml ) - there is no unnecessary whitespaces before <?xml declaration ( Mozilla specific issue - probably your case ) http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob |