Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If I understand you correctly you want a Element that is a SimplePager and an DataGrid at the same time. What I don't understand is why you need something like this? I just don't get what you need and a composition like <a href="http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#" rel="nofollow">http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#</a>! doesn't have? If you need to be able to call the functions of a DataGrid, then I would suppose you make an Class that extends DataGrid. </p> <pre><code>public class MyDataGrid extends DataGrid&lt;EngineJobDTO&gt; { private static MyDataGridUiBinder uiBinder = GWT.create(MyDataGridUiBinder.class); interface MyDataGridUiBinder extends UiBinder&lt;Widget, MyDataGrid&gt; { } @UiField SimplePager pager; public MyDataGrid() { initWidget(uiBinder.createAndBindUi(this)); SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class); pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 0, true); pager.setDisplay(this); } } </code></pre> <p>UiBinder for it:</p> <pre><code>&lt;!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"&gt; &lt;ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:c="urn:import:com.google.gwt.user.cellview.client"&gt; &lt;c:SimplePager ui:field='pager' location='CENTER'/&gt; &lt;/ui:UiBinder&gt; </code></pre> <p>And then you have your own DataGrid with paging. I don't know If this really works, i've only done something similar with a normal grid.</p> <p>Hope it will help you.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload