Opened 9 years ago

Last modified 9 years ago

#12204 closed defect

[regression] Problem of defining source html table of HtmlStore in the TitlePane — at Version 1

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 (last modified by Kenneth G. Franqueiro)

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 "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <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" }
        ]];
    </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 worked in previous releases.

Change History (1)

comment:1 Changed 9 years ago by Kenneth G. Franqueiro

Description: modified (diff)
Summary: Problem of defining source html table of HtmlStore in the TitlePane[regression] Problem of defining source html table of HtmlStore in the TitlePane
Note: See TracTickets for help on using tickets.