File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes Pre render some fields in the DUALLISTFIELD on the other side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Pre render some fields in the DUALLISTFIELD on the other side" Watch "Pre render some fields in the DUALLISTFIELD on the other side" New topic
Author

Pre render some fields in the DUALLISTFIELD on the other side

Varin Adhkab
Greenhorn

Joined: Jan 25, 2011
Posts: 6

Hello,

I have a duallistfield which has 9 fields. Now what i want is that, whenever a user loads my page 5 of those 9 fields should automatically be populated on the listfield giving user the choice to choose the remaining 4 as they wish. can someone please let me know how do we do it?

I have attached the desired output that i need. in my current implementation all the values are on the left box.

thanks in advance.



have posted the post on http://www.sencha.com/forum/showthread.php?136063-Pre-render-some-fields-in-the-DUALLISTFIELD-on-the-other-side forum also....



[Thumbnail for DUALLISTFIELD.PNG]

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

I am not sure I am understanding the problem here.
Why can't you just add the 4 items to the list before it is shown?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Varin Adhkab
Greenhorn

Joined: Jan 25, 2011
Posts: 6

thanks maneesh for replying..but i got the solution for my problem...

my problem was to pre load other side of the list with defaul values...and the solution was to implement and use this method


com.extjs.gxt.ui.client.widget.form.DualListField.getToList()
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pre render some fields in the DUALLISTFIELD on the other side