Categories | Question details Back To List | ||
Sending Serialized treegrid through Dataprocessor and retreiving on server side I am using TreeGrid control in my application, currently i am using Dataprocessor to send changed objects to my java servlet. I wish to serialize the miodified gridtree, i know how the serialize command works, but i wish to know in which variable would the serialized object be stored as on the serverside, how i assiociate the serialized XML string with a data object name on the server side I am just enclosing some code snippet function sendData(){ //submit serialized gridtree mygrid.submitSerialization(true); mygrid.enableMathSerialization(true) var myXmlStr = mygrid.serialize(); db.sendData(); location.href="<%="/Banking/ProcessServlet %>"; } <!-- HTML code-----> <script> //init menu db.enableDataNames(true); db.setUpdateMode("off"); db.setTransactionMode("POST"); db.init(mygrid); //code snippet var mygrid = new dhtmlXGridObject('gridbox'); var db = new dataProcessor("<%="/Banking/ProcessServlet %>"); </script> Answer posted by dhxSupport on Nov 24, 2009 04:10 You can store serialized grid in the global user data. Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:storing_additional_data#userdata Answer posted by Stanislav (support) on Nov 24, 2009 05:57 >>mygrid.submitSerialization(true); If you are using form integration, serialized state of the grid, will be sent with the form as $_POST["gridbox_serialized"] where "gridbox" - ID of container, inside which grid was initialized ( grid.entBox.id ) |