Nov 11, 2013, 2:55 PM
[CLOSED] Drag and drop cell content
Is there an easy way to drag and drop cell context?
I found this link (http://forums.ext.net/showthread.php?11609) but that physically moves the row. I don't want to move anything. I just want to take the data from the store from a location (start drag) and move the data to another cell (end drag).
I want to disallow to "drop" if there is any value in the store at that location (use isOkToDrop)
My code for the columns is below. I know I need a variation of the link above and it should be possible to move the store contents only without physically moving any rows. For this example, assume the store as an data parameter isOkToDrop.
Thanks,
/Z
I found this link (http://forums.ext.net/showthread.php?11609) but that physically moves the row. I don't want to move anything. I just want to take the data from the store from a location (start drag) and move the data to another cell (end drag).
I want to disallow to "drop" if there is any value in the store at that location (use isOkToDrop)
My code for the columns is below. I know I need a variation of the link above and it should be possible to move the store contents only without physically moving any rows. For this example, assume the store as an data parameter isOkToDrop.
Thanks,
/Z
<ext:Column ColumnID="startOnGui" Header="First" Width="70" DataIndex="firstItem" >
<Renderer Fn="startCheck" />
<Editor>
<ext:TextField ID="TextFieldFirst" runat="server" />
</Editor>
<EditorOptions>
<Listeners>
<BeforeStartEdit Handler="return (!GridPanel.getStore().getAt(editor.row).data.firstDisabled);" />
<Complete Fn="firstChanged" />
</Listeners>
</EditorOptions>
</ext:Column>
<ext:Column ColumnID="endOnGui" Header="Second" Width="70" DataIndex="secondItem">
<Renderer Fn="endCheck" />
<Editor>
<ext:TextField ID="TextFieldSecond" runat="server">
<Listeners>
<Change Fn="secondChanged" />
</Listeners>
</ext:TextField>
</Editor>
<EditorOptions>
<Listeners>
<BeforeStartEdit Handler="return (!GridPanel.getStore().getAt(editor.row).data.secondDisabled);" />
</Listeners>
</EditorOptions>
</ext:Column>
Last edited by Daniil; Nov 22, 2013 at 4:17 AM.
Reason: [CLOSED]