dojox.grid.DataGrid can't display repeat rows?

Posted by Robert on Stack Overflow See other posts from Stack Overflow or by Robert
Published on 2010-03-19T02:05:26Z Indexed on 2010/03/19 2:11 UTC
Read the original article Hit count: 960

Filed under:
|

We have a situation where we need to display data from a database in a grid which has repeat rows, but it seems at least the basic examples fail when the cell data is identical with Sorry, an error occurred. An example follows:

           
    <script>
        dojo.require("dojo.data.ItemFileWriteStore");
        dojo.require("dojox.grid.DataGrid");

        var historyData = {
            'identifier': 'time',
            'label': 'time',
            'items': [

            {
             'message': 'Please turn in your TPS reports immediately',
                'time': 'March 3 2010 7:20 AM',
                'sentBy':'Bill Lumbergh'

            },
             {
             'message': 'Please turn in your TPS reports immediately',
                'time': 'March 3 2010 7:20 AM',
                'sentBy':'Bill Lumbergh'

            }]
        };

        var historyGridLayout = [
            [{
            field: "message",
            name: "Message"
        },
        {
            field: "time",
            name: "Display Date & Time"
        },
        {
            field: "sentBy",
            name: "Sent By"
        }]];

    </script>

    <body class="tundra ">
        <div dojoType="dojo.data.ItemFileWriteStore" data="historyData" jsId="historyStore">
        </div>
        <div id="grid" dojoType="dojox.grid.DataGrid" store="historyStore" structure="historyGridLayout">
        </div>
    </body>

Help!

© Stack Overflow or respective owner

Related posts about dojo

Related posts about dojox