-
11 Jul 2012 3:09 AM #1
[Question] Have draggable items of DataView or in Web Desktop Sample?
[Question] Have draggable items of DataView or in Web Desktop Sample?
Do we have any native ability in DataView (or in Web Desktop Sample) to have draggable items?<br>Actually as far as I understand we don't have any config options for items of DataView, where we can make them draggable, because they are not descendants of Component.<br>Am I wrong?<br>But we can make whole DataView draggable, since it is a Component.<br>I have tried to implement multiple DataViews, each containing only one element, they can be dragged, but still their position are not saved when refreshing page (stateful config option doesn't help), and their possibility to drag such element clicking over its element. I want to let it drap only when mouse is inside its element.<br>Here is my example so far<br><a href="http://julfysoft.orgfree.com/desktop.html">http://julfysoft.orgfree.com/desktop.html</a>
-
11 Jul 2012 3:12 AM #2
[Question] Have draggable items of DataView or in Web Desktop Sample?
[Question] Have draggable items of DataView or in Web Desktop Sample?
Do we have any native ability in DataView (or in Web Desktop Sample) to have draggable items?
Actually as far as I understand we don't have any config options for items of DataView, where we can make them draggable, because they are not descendants of Component.
Am I wrong?
However we can make whole DataView draggable, since it is a Component.
I have tried to implement multiple DataViews, each containing only one element, they can be dragged, but still their position are not saved when refreshing page (stateful config option doesn't help), and their possibility to drag such element clicking over its element. I want to let it drap only when mouse is inside its element.
Here is my example so far
http://julfysoft.orgfree.com/desktop.html
-
11 Jul 2012 3:21 AM #3
Hi!
have you seen this:-
http://www.sencha.com/forum/showthre...op-to-DataView
also, check out an example of drag n drop from Book ExtJS in action :-
http://extjsinaction.com/examples/chapter14/
http://extjsinaction.com/examples/ch...ltiselect.htmlsword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
11 Jul 2012 3:25 AM #4
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
13 Jul 2012 5:04 AM #5
Hi, sword-it.
Thank you for quick answer.
These links are actually about dnd - drag and drop, so you didn't understand me correct.
I don't want dnd - drag and drop, I just want "dragging" "moving" inside one window, one dataview.
I tried to assign
to items of dataview (like in "draggable Tiger" example [http://dev.sencha.com/deploy/ext-4.0...aw/Tiger.html]), but I couldn't, because dataview doesn't have items that can be initialized in that way.Code:cls: 'cursor-dragme', draggable: { constrain: true, constrainTo: Ext.getBody() },
So, I want "many draggable tigers" that look like items of Dataview, so they have icon, text, and on icon doubleclick some action can be executed (or just method called).


Reply With Quote