Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 12th Apr 2012, 01:10
Crack Crack is offline
Registered Developer
 
Join Date: Nov 2011
Posts: 3
Default 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 Images
File Type: png grid.png (2.7 KB, 5 views)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
ListGrid editing problems dzarras Smart GWT Technical Q&A 18 6th Jan 2012 13:47
DateItem Problem within ListGrid ajmarrer Smart GWT Technical Q&A 5 11th Dec 2011 16:00
Rendering Dynamic Columns along with some static columns in a listgrid vinikrish Technical Q&A 6 1st Dec 2011 17:36
contentLoaded not fireing Mellon Technical Q&A 1 27th Jul 2011 06:32
Table rendering inside Listgrid cell for multiple field maksymg Smart GWT Technical Q&A 2 15th Dec 2009 13:58

© 2010,2011 Isomorphic Software. All Rights Reserved