Re: Drag a whole Form

View: New views
1 Messages — Rating Filter:   Alert me  

Re: Drag a whole Form

by Eugene Lazutkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just specify "skipForm: true" on your source, like that:

<div dojoType="dojo.dnd.Source" skipForm="true"
    id="dragForm" class="source">
  <div dojoType="dijit.form.Form"
      id="form" class="dojoDndItem">
    <input type="text" id="tbHost"
      dojoType="dijit.form.TextBox" name="host"/>
  </div>
</div>

Eugene Lazutkin
Dojo Toolkit, Committer
http://lazutkin.com/

On 09/09/2009 06:53 AM, John Bindby wrote:

> Harry,
>
> How did you solve it ?
>
> I have the same problem, but just in Firefox.
>
> /John
>
> Harry Brandenburg wrote:
>> Ok problem solved!
>> Thanks anyway.
>>
>>
>> Greetz
>> Sprigg
>>
>> 2009/9/9 Harry Brandenburg <harrybrandenburg@...
>> <mailto:harrybrandenburg@...>>
>>
>>     Hi,
>>     i have a Problem with dragging a whole dijit.form.Form. The
>>     Dragging works well, but now i can't focus my textboxes of the
>>     form anymore. I guess with a click on them i'm activating the
>>     drag. Is there any option to set the priority of the textboxes higher?
>>
>>     Here a bit of the Code:
>>     <div dojoType="dojo.dnd.Source"  id="dragForm" class="source">
>>                     <div dojoType="dijit.form.Form" id="form"
>>     class="dojoDndItem">
>>                                       <input type="text" id="tbHost"
>>     dojoType="dijit.form.TextBox" name="host"/>
>>     </div></div>  
>>
>>     Greetings
>>
>>     Sprigg    
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> FAQ: http://dojotoolkit.org/support/faq
>> Book: http://docs.dojocampus.org
>> Dojo-interest@...
>> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>>  
>
>

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest