-
27 Oct 2010 1:39 AM #1
How can i drag the Label of the form contorl widget?
How can i drag the Label of the form contorl widget?
Hi all,
I have a problem on dragging the widget in form panel.
I have created a TextField widget with a label and text box and it is draggable.
The code is very simple as shown in follow:
However, i can only drag the text box but not the label.Code:TextField<String> textField = new TextField<String>(); textField.setFieldLabel("label"); Draggable d = new Draggable(textField);
the label is set in the same widget as the textbox.
What i want to do is both label and text box are able to be dragged
but not both elements are dragged together, but they can be dragged alone.
Can anyone give me some ideas?
Thanks a lot!
-
27 Oct 2010 1:42 AM #2
This is a bit more tricky. I also would not use the Draggable class for this, but the DragSource. When starting a drag i would look it the label or the textfield was clicked.
Similar Threads
-
Form Panel : Load Record and show the data in form label
By dev_java in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 5 Aug 2010, 2:55 AM -
Looking for ExtJS Freelancer who can create a Drag Drop Application creation widget
By weilies in forum Community DiscussionReplies: 1Last Post: 3 Jun 2010, 5:23 AM -
API after form submit in com.extjs.gxt.ui.client.widget.form.FormPanel
By sample007 in forum Ext GWT: DiscussionReplies: 0Last Post: 22 Aug 2009, 1:35 AM -
In EXT2.0 I used the Component EXT.form.Label-Doubts in EXT.form.Label
By sorna_lavanya in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 26 Sep 2008, 1:31 AM -
How to drag a label in a tabpage?
By i8dea in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 24 May 2008, 8:18 AM


Reply With Quote