SMART datagrid v1.4 > Classes > GridDataSet

Back  Forward

DataLudi.GridDataSet.setXmlRows  method

rows로 XML 객체를 전달하는 것 외에는 setRows와 동일하다. 

function setXmlRows (rows: XMLList, start: Number, count: Number);
Returns
Void
Parameters
rows - XMLList. required.
start - Number. 기본값은 0.
count - Number. 기본값은 -1.
Code -1
    //
    var rows = '<rows><row id="1" userid="smccoy" company="Fivespan" first_name="Jane"/><row id="2" userid="smccoy" company="Fivespan" first_name="Jane"/></rows>';
    rows = DataLudi.parseXml(rows).documentElement.childNodes;
    ds.setXmlRows(rows);
See Also
updateXmlRows
appendXmlRows
insertXmlRows
setRows
Examples
Load Xml Data