PDA

View Full Version : How to add an Editable Grid to <div> HTML tag



HoangKhoa
6 Apr 2011, 11:52 PM
Hi, here is my code:



<div id="content">
<script type="text/javascript" src="<%=contextPath%>/com.chatluongnuoc.gxt.Main/com.chatluongnuoc.gxt.Main.nocache.js"></script>
<iframe src="javascript:''" id="__gwt_historyFrame" style="width: 0; height: 0; border: 0" ></iframe>
</div>

I want Editable Grid display inside this <div>, but here is the result:


What is my problem?

sven
6 Apr 2011, 11:56 PM
Instead of doing
RootPanel.get().add(grid); you simple do
RootPanel.get("idofdiv").add(grid);

HoangKhoa
7 Apr 2011, 12:53 AM
Thank sven. It worked.
That was my bad, i should look for all methods gwt give before asking a question.