Wednesday, February 12, 2014

How to clear the Text “1-1 of 0” in SimplePager (GWT)?

Given these codes:

private ListDataProvider<String> cellListDataProvider = new ListDataProvider<String>();  public void onLoadingData(){      mySimplePager.setDisplay(myCellList);      mySimplePager.setPageSize(3);      cellListDataProvider.addDataDisplay(myCellList);  }    //There is a button & when clicking that button , it will call  public void resetData(){     cellListDataProvider.getList().clear();     mySimplePager.setPageSize(0); ///--> dot no help  }  

Now after calling resetData() then the CellList was disappeared, but the SimplePager still shows the text 1-1 of 0, which doesn't make any sense. I tried to clear that text by using mySimplePager.setPageSize(0); but nothing happened unless I refresh the page.

So How to clear the Text "1-1 of 0" in SimplePager (GWT)?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment