-
Website
http://www.17od.com/ -
Original page
http://www.17od.com/2008/07/24/how-to-create-a-remote-paging-listview-using-gwt-ext/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
ijokasu
1 comment · 0 points
-
belgamo
2 comments · 1 points
-
craden
1 comment · 1 points
-
a_mol
1 comment · 1 points
-
threaderslash
1 comment · 1 points
-
-
Popular Threads
Is there a better way? Can you recommend an approach? Is this even possible since the root/first level of the tree looks different from a data perspective (i.e. fewer columns than an expanded node showing record details).
Any advice would be appreciated.
It's difficult to say what the best approach is without understanding your data and how it would be best presented. With 7000 rows of data I'd say you're on the right track with remote paging.
The Grouping Grid looks pretty similar to the standard Grid. From looking at the example here (http://www.gwt-ext.com/demo/#gridGrouping) the only difference is that you use a GroupingStore, a GroupingView and call grid.setAutoExpandColumn() on the GridPanel.
Thanks for the nice article. I'm trying out something like this. I have a search criteria and when I click the submit button I need to load the store. I can see on the server side, the data is being generated and response is sent. But on the client side, the grid is not getting refreshed. I've posted the problem with code snippets here http://gwt-ext.com/forum/viewtopic.php?f=2&...
If possible, do let me know if you sense any problem somewhere.
regards
Prakash
Thank you for the great tutorial. I do need some help and guidance for the following issue -- The code works perfectly fine when run in hosted mode, however when I run it in web mode, I do not see any data in the grid. I do not get any exceptions either. I tried all possible ways/options and couldn't proceed further. Can you please guide me. Thanks a lot.
I just have one doubt. I follow the steps and my json is like it:
{
"accounts": [
com.microcpd.mapp.server.Account@13b9fae,
com.microcpd.mapp.server.Account@1706da8,
com.microcpd.mapp.server.Account@2f356f],
"totalCounts": 3}
Why are not showing the attributes of the Account, it's showing the object.
Thanks a lot
I notice the following:
JSONArray jsonPersons = new JSONArray(persons, true);
I don't have the constructor method JSONArray with a parameter boolean like you code. In my code is:
JSONArray jsonAccounts= new JSONArray(accounts);
Other observation:
How is inserted the attribute class in JSON:
{
"class": "class com._17od.servlets.Person",
"dateOfBirth": "2001-05-19",
"firstname": "Rebecca",
"id": 5,
"lastname": "Taylor"
}
Thanks a lot
I tried above example , in my data base i have 21 records.But it's displaying only 15 records in my grid and next page and last page buttons are disabled.Could you help us to figure out the mistake done by me.
Regards,
Rajesh
Is the "total" attribute returned in your JSON correct? (the total field in the example I give is "totalPerons" - although that's a mis-spelling, it should be "totalPersons"). This attribute should be the total number of records in the listview, not just the current page.
Adrian
{ "totalPersons": 25, "persons": [ com.lk.remote.Person@1ad6b4b, com.lk.remote.Person@5f2db0, com.lk.remote.Person@b0a3f5, com.lk.remote.Person@dc41c5, com.lk.remote.Person@6214f5, com.lk.remote.Person@14e113b, com.lk.remote.Person@4d76b4, com.lk.remote.Person@1ac5f13, com.lk.remote.Person@195dd5b, com.lk.remote.Person@1f78b68]}
Why are not showing the attributes of the Account, it's showing the object.
and also
JSONArray jsonPersons = new JSONArray(persons, true);
I don't have the constructor method JSONArray with a parameter boolean like you code
Is the class com.lk.remote.Person a JavaBean? http://en.wikipedia.org/wiki/JavaBean#JavaBean_...
> I don't have the constructor method JSONArray with a parameter boolean like you code
I'm using the JSON lib available on this page, http://www.json.org/java/index.html
Thanks for the great tutorial!!!