grid data comes out in one column instead of multiple columns
I am not able to figure out why this is happening. Any help will be appreciated.
<style>
.active-controls-grid {
width: 865px;
height: 275px;
font: menu;
}
.active-selection-true, .active-selection-true .active-row-cell {
color: red !important;
background-color: #C4AE88 !important;
}
.active-grid-row,
.active-grid-row .active-list-item,
.active-scroll-left .active-list-item {height: 20px;}
</style>
<Script>
var table = new Active.XML.Table;
table.setXML('<%=data%>');
var obj=new Active.Controls.Grid;
obj.setProperty("column/count",3);
obj.setColumnText(function (i){return cols[i]});
obj.setModel("data",table);
document.write(obj);
</Script>
I have 3 columns in the xml file and all the data appears in one column
as shown below
A
1
3W4
E
2
3W4
F
3
W34
<style>
.active-controls-grid {
width: 865px;
height: 275px;
font: menu;
}
.active-selection-true, .active-selection-true .active-row-cell {
color: red !important;
background-color: #C4AE88 !important;
}
.active-grid-row,
.active-grid-row .active-list-item,
.active-scroll-left .active-list-item {height: 20px;}
</style>
<Script>
var table = new Active.XML.Table;
table.setXML('<%=data%>');
var obj=new Active.Controls.Grid;
obj.setProperty("column/count",3);
obj.setColumnText(function (i){return cols[i]});
obj.setModel("data",table);
document.write(obj);
</Script>
I have 3 columns in the xml file and all the data appears in one column
as shown below
A
1
3W4
E
2
3W4
F
3
W34
Pandu
January 31,