Hi I am trying place my datagrid into map infowindow but it doesnot show up, where as all the other contents do come up such as buttons etc.
here is the snippet of code:
var cp1 = new ContentPane({
title: "Expired VBB Report",
style: "width:500px;height:500px;"
// innerHTML:"this is test"
});
var myMemoryStore = new Memory(
{ data: [
{ 'id': '0', 'lastname': 'Frank' },
{ 'id': '1', 'lastname': 'Herbert'}]
});
var myObjectStore = new ObjectStore({ objectStore: myMemoryStore });
var myStructure = [
{ type: "dojox.grid._CheckBoxSelector" },
[
{ 'name': 'Column 1', 'field': 'id', 'width': '20%' },
{ 'name': 'Column 2', 'field': 'lastname', 'width': '20%', formatter: this.createLink }
]
];
var ShowVBBGrid = new DataGrid({
//id:'ShowVBBGrid',
store: myObjectStore,
structure: myStructure,
autoHeight: true
//selectionMode: "single",
// style: "width:400px;height:400px;display:block"
});
dojo.place(ShowVBBGrid.domNode, cp1.containerNode, 'first');
// cp1.set("content", ShowVBBGrid.domNode);
ShowVBBGrid.startup();
this.map.infoWindow.setTitle("Section58 Values");
this.map.infoWindow.resize(600, 500);
this.map.infoWindow.setContent(cp1.containerNode);
this.map.infoWindow.show();