Categories | Question details Back To List | ||
update single row from xml string Hello, I have a grid which can contain a huge number of rows. In order to save time and load i want to update changes only on single rows... Due to the fact that the server consumes a lot of ressources processing the whole xml data everytime a change is done it is mor efficient for me only processing the updated one and send the xml data back to the client The problem is that i can only get the values as a xml string (unfortunately there is no way to generate a proper xml file). Is there a way to update a single row (using the rowID) form that xml that contains ONLY this one row's data, analog to the functions "updateFromXML" or "updateRowFromClipboard" , as i.e. "udpatefromXMLString" with the same parameters as "updateFromXML"??? I did not found a way yet how to implement that. I hope you can help me with this! THX in advance greetings Seb Answer posted by dhxSupport on Mar 10, 2009 10:11 You can set values of any cell by grid.cells(i,j).setValue(newValue); i - row ID j - cell index or grid.cells2(i,j).setValue(newValue); i - row index j - cell index Answer posted by baeggre on Mar 10, 2009 10:17 yes, i know that but then i have to parse the xmlstring i get from the server and run through every cell in the row. Which is not quite elegant ;-) So i think i have to write my own function for this. but thx for the fast reply, i guess this means there is no such function implemented...? am i right? greets Seb Answer posted by dhxSupport on Mar 11, 2009 06:24 >>i guess this means there is no such function implemented...? am i right? Yes, there isn't such functionality for the grid loaded from the xml string. |