hello , am new to dhtmlx , am trying to load data from xml string to my grid , am using layout 3W, and am trying to load a xml string into the grid here is my code
myLayout.cells("c").setText("Farmer Assets");
grid2 = myLayout.cells("c").attachGrid();
grid2.setHeader("id,Farmerid,Asset Number,Asset Type,Animal Type,Breed,Age,weight,Current
use,Calvings,Milk yield,body Alignment");
// grid2.setColumnIds("id,farmerId,assetNumber,assetType,animal_type,breed, age,
weight,current_use,calvings,milk_yield,body_alignment");// the columns' ids
grid2.setInitWidths("20,70,*");//sets the initial widths of columns
grid2.setColAlign("left,left,left"); //sets the alignment of columns
grid2.setColTypes("ro,ro,ro"); //sets the types of columns
grid2.setColSorting("str,str,str"); //sets the sorting types of columns
grid2.init();
grid2.parse("<List>
<item>
<id>1</id>
<farmerId>1</farmerId>
<assetNumber>1</assetNumber>
<assetType>demoData</assetType>
<animal_type>demoData</animal_type>
<breed>demoData</breed>
<age>demoData</age>
<weight>demoData</weight>
<current_use>demoData</current_use>
<calvings>demoData</calvings>
<milk_yield>demoData</milk_yield>
<body_alignment>demoData</body_alignment>
</item>
<item>
<id>2</id>
<farmerId>2</farmerId>
<assetNumber>1555057713807</assetNumber>
<assetType>Livestock</assetType>
<animal_type>Cow</animal_type>
<breed>Shshshs</breed>
<age>Shshaha</age>
<weight>Sgahahw</weight>
<current_use>Whshhsha</current_use>
<calvings>Shsjsjs</calvings>
<milk_yield>Uwhahwh</milk_yield>
<body_alignment>Jwhabwhjw</body_alignment>
</item>
Hi sematik, thank you very much for responding , i just wanted to understand , if am trying to load the xmla format from a an api call how would i do that