Opened 9 years ago

Last modified 9 years ago

#12204 closed defect

Problem of defining source html table of HtmlStore in the TitlePane — at Initial Version

Reported by: tbbt Owned by: anonymous
Priority: high Milestone: 1.6
Component: DojoX Data Version: 1.6.0b1
Keywords: HtmlStore TitlePane Cc:
Blocked By: Blocking:

Description

When defining a source html table of htmlStore in the TitlePane?,the DataGrid? fed by such htmlStore will not be shown.The source code is as following:

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01EN" "http://www.w3.org/TR/html4/strict.dtd"> <%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head>

<!-- <link rel="stylesheet" type="text/css" href="css/w3rtstyles.css" /> --> <!--<s:head theme="ajax" />--> <style type="text/css">

@import "dojoroot/dijit/themes/claro/claro.css"; @import "dojoroot/dojo/resources/dojo.css" @import "dojoroot/dojox/grid/resources/Grid.css"; @import "dojoroot/dojox/grid/resources/claroGrid.css";

.grid {

width: 50%; height: 100%; padding: 1px; border: solid 1px black; border-style:outset;

}

</style> <script type="text/javascript" src="dojoroot/dojo/dojo.js"

djConfig="parseOnLoad: true">

</script> <script type="text/javascript">

dojo.require("dojo.parser"); dojo.require("dojox.data.HtmlStore?"); dojo.require("dojox.grid.DataGrid?"); dojo.require("dijit.TitlePane?");

var unitInfoLayout = [[{ field : "UnitType?", name : "Unit Type", width: "40%" , headerStyles : "text-align: center" },

{ field : "UnitFamily?", name : "Unit Family", width : "35%", headerStyles : "text-align: center" }, { field : "Amount", name : "Amount", width : "25%" , headerStyles : "text-align: center"} ]];

dojo.addOnLoad(function() {

console.log("Helloworld");

});

</script>

</head> <body class="claro"> <div dojoType="dijit.TitlePane?" title="Unit Info Table" style="margin: 5px">

<table id="unitInfoSrcTable" style="display:none">

<thead>

<tr><th>UnitType?</th> <th>UnitFamily?</th> <th>Amount</th></tr>

</thead> <tbody>

<tr>

<td>10G-TRP-6350</td> <td>6300</td> <td>1</td>

</tr>

<tr>

<td>Total</td> <td>-</td> <td>16277</td>

</tr>

</tbody>

</table>

<div dojoType="dojox.data.HtmlStore?" jsId="unitInfoStore" dataId="unitInfoSrcTable" > </div>

<table id="unitCountGrid" class="grid" dojoType="dojox.grid.DataGrid?" store="unitInfoStore"

structure="unitInfoLayout" query="{}" autoHeight="true" rowsPerPage="25" >

</table>

</div> </body> </html>

The code has been worked in the previous releases.

Change History (0)

Note: See TracTickets for help on using tickets.