you can use different ways to create a new table in gwt:

- Uibinder:
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder">
        <div>
                <table ui:field="mytable">
                </table>
        </div>
</ui:UiBinder>

@UiField
TableElement mytable;

- HTML
    HTML html = new HTML("<table></table>");

- GwtQuery
  $(document).append("<table></table>");


But if you want to modify an existing Grid widget with handwritten
html, you have to use gquery or specific GWT DOM
  $("tbody > tr", mygrid).eq(0).after("<tr><td></td></tr>");
  $("tbody > tr", mygrid).eq(0).children("td").eq(0).attr("rowspan", "2");

Be aware that changing the html code of a Grid by hand could cause
other problems like certain methods would return incorrect values
(like grid.getRowCount())


- Manolo

On Mon, Oct 15, 2012 at 10:10 PM, qinyc <[email protected]> wrote:
> I'm maintaining code to display a g:Grid. How could I generate code like
> this: <td rowspan="2"> using either UIBinder or JSNI? (No FlexTable)
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/1sgmBcRJVYMJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to