I am pulling data from a database that in a number of columns has text in it that are surrounded by < and > but the data is not XML. In the grid that I am loading the data to the text in <> is not being displayed is there a way to tell gird to display that text. I am using ASP.NET MVC as the back end and the code is below.
[code]function onLoad() {
dhxLayoutWidth = null;
dhxLayoutHeight = null;
window.dhx_globalImgPath = "../../Content/imgs/";
dhxLayout = new dhtmlXLayoutObject("parentId", "2U");
dhxLayout.cells("a").setText("Site Navigation");
dhxLayout.cells("b").setText("Main Page");
dhxLayout.cells("a").setWidth(200);
dhxLayout_tree = dhxLayout.cells("a").attachTree(0);
dhxLayout_tree.setSkin('dhx_skyblue');
dhxLayout_tree.setImagePath("../../Content/treeimgs/");
//dhxLayout_tree.loadXML("../../Content/SiteNav.xml");
//dhxLayout_tree.attachEvent("onSelect", onTreeSelect);
dhxLayout_dataView_grid = dhxLayout.cells("b").view("data").attachGrid();
dhxLayout_dataView_grid.setImagePath("../../Content/imgs/");
dhxLayout.cells("b").view("data").setActive();
dhxLayout_dataView_grid.clearAll(true);
dhxLayout_dataView_grid.load("Tidal/Index/1", loadFinished);
}
Here is the MVC C# function
public string Index(int id)
{
string result;
int count = 0;
try
{
result = @"<?xml version=""1.0""?>
A picture of what is showing up in the grid is attached.
Please advise.