Categories | Question details Back To List | ||
dHtmlGrid I have a xmlstring as well as xmldocument object in my servlet. (1) How to load the serverside xmlstring/xmldocument object to the grid. I dont want to save any xml in client's machine. Can you give me an example? (2) Also i want to save the xml in db through ajax from grid. (3) How to set the properties of individual cell.(font color, size, font family etc) style attribute is available for row. But i want to set it for individual cell. Answer posted by PierreL on Jul 31, 2007 13:27 Here is a simplest way to generate XML inline by generating javascript loadXMLString("<rows> ...") directly from jsp ( notice you should have \" in javascript value , so should have \\\" in java generating javascript ) mygrid.loadXMLString("<%
A better way is to use the loadXML syntax for the grid mygrid.loadXML("myNewJSP.jsp"); and to furnish an independant jsp that generate only the previous string ( no need to escape twice) with surrounding ("<?xml version=\"1.0\" encoding=\"UTF-8\"?><data> ............ </data>"); ( See java examples within download)
while myNewJSP.jsp just do Answer posted by Darya (Support) on Dec 02, 2014 11:31 I hope this information will be enough for you. But you also can have a look at user interface component and menu tree. |