Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Problems with rendering of DateItem inside ListGrid

    When I try to use DateItem inside of ListGrid it is too wide to fit into a cell (see attached screenshot). The issue disappears when I remove <!DOCTYPE..> declaration. Is there some other way around it? I would like to keep this DOCTYPE.

    Code example:
    Code:
    <%@ page contentType="text/html;charset=utf-8" language="java" %>
    <%@ taglib uri="/WEB-INF/iscTaglib.xml" prefix="isomorphic" %>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <isomorphic:loadISC skin="Enterprise" isomorphicURI="../isomorphic/" />
    </head>
    <body>
    
    <script type="text/javascript">
    isc.DataSource.create({
        ID:"employees",
        clientOnly:true,
        fields:[
            {name:"employeeID", type:"sequence", hidden:true, primaryKey:true},
            {name:"name", title:"Name"},
            {name:"hireDate", title:"Hiring Date", type:"date"}
        ],
        testData:[
            {employeeID:452, name:"Gene Porter", hireDate:new Date(2005,1,4)}
        ]
    });
    
    isc.VLayout.create({
        members:[
            isc.ListGrid.create({
                ID:"employeeGrid",
                width:250, height:100,
                canEdit:true,
                dataSource:"employees",
                autoFetchData:true
            })
        ]
    });
    </script>
    
    </body>
    </html>
    Smart Client 8.2, Firefox 11, IE6, IE 8, IE 9.
    Attached Files
Working...
X