Serialize Selected Row

Hi,

http://forum.dhtmlx.com/viewtopic.php?f=2&t=1558&p=4317&hilit=serialize+selected+row#p4317

Base on the above post from Support, DHTMLX does not support serialize selected row yet. Do you have plan to support in your future release? If so what is the time frame.

Being able to serialize/export on selected row is a very useful functionality that is part of any data export application. It would be great if this feature can be a part of DHMLX.

Regards,
Brian

There is no option to serialize selected row and we have no plans to add it. But you can can control which rows must be serialized with setSerializationLevel() method docs.dhtmlx.com/doku.php?id=dhtm … ationlevel

You can use 2nd parameter to add “selected” attribute in result XML and then parse it on the serverside.

There is no option to serialize selected row and we have no plans to add it.

:frowning:

Question 1 - I used the setSerializationLevel() method, and i get the XML; how can i pass into another grid this xml?

Thanks in advance for yur reply.

Euler

grid2.parse(“xml_string”);

docs.dhtmlx.com/doku.php?id=dhtm … ta_loading

Hi, i’m getting the next error

gridliq.parseXML is not a function

my code looks like:


gridliq = new dhtmlXGridObject(‘tablainfoliq’);
gridliq.setImagePath("./…/…/images/");
gridliq.setHeader …
gridliq.setColumnIds…
gridliq.enableEditEvents…
gridliq.setInitWidths(“40,95,85,115,115,115,115,115,80,100,100,100,100”);
gridliq.setColTypes(“ch,ro,ro,dhxCalendar,ro,ro,ron,ron,ro,ro,ro,ro,ro”);
gridliq.enablePaging(true,25,7,“pagingArea”,true);
gridliq.init();

function genera_liquidacion(){

    grid.setSerializationLevel(true,false,true,false,true,true);
    var myXmlStr = grid.serialize();
    //alert (myXmlStr);

    var selected_rows = grid.getCheckedRows(0).split(",");
    alert (selected_rows);
    
    gridliq.parseXML(myXmlStr); 

}

i’ve the v.1.6 build 80603
dhtmlxGrid_pro_v16_80512

i need some others includes?

Thanks in advance for your reply.

For latest version of grid, correct command will be

gridliq.parse(myXmlStr);  //just parse, not parseXML

As for version 1.6, you can try

gridliq.loadXMLString(myXmlStr);

gridliq.parse(myXmlStr); //just parse, not parseXML

thanks for your reply, i solved the problem :mrgreen:

now, my question is (i dont know if is about a grid o javascript problem):

how can i get a popup with other grid and in this grid pass the value of gridliq.parse(myXmlStr);
that is in my previous page?
It is possible?

Thanks you very much

It not related to component, but more to js|dom techniques.
Normally you can use something line

window.xml_data = something; window.open("popup.html");

and in popup.html

... grid.parse(opener.xml_data);

Thank you very much Olga and Stanislav
Finally i solved the problem

Stanislav example was perfect.

Best regards,

Euler Sánchez