I have a dojo.dnd.Source of items (copyOnly=true, so the original items remain in the source) that can be dragged and dropped into various other sources. I wanted the functionality of being able to 'throw them away' from the source they were added to, simply by flicking them away with the mouse (i.e., dragging them to a region on the page that was not a source or a target). I came up with the following solution, which I am presenting here not only to help anybody else that might have the same need, but also to get any suggestions as to how this solution might be improved.
delete
Drag and Drop - delete/throwaway node if dragged to non-target
Delete row from grid when using QueryReadStore?
Hi,
I'm trying to figure out how to delete a row from a grid with a QueryReadStore backend. Basically I just want to make the row disappear. I'll do an Xhr in the background to update my server...
I tried grid.removeSelectedRows, but I get this error:
TypeError: this.store.deleteItem is not a function
Any ideas?
Thanks!
ComboBox
Hello,
i have a big problem. I have one site created with the Smarty-Template-Engine.
I have two comboboxes as you see below "selectbox1" and "selectbox2". I want that "selectbox1"
fires the onchange-Method and calls the javascript-Function "searchServers()".
Pseudo-Code,test.tpl:
/* Selectbox1 */ test1 test2
- Login or register to post comments
- Read more
- Unsubscribe post
delete command
I tried to run the following code:
var x = 10;
delete x;
alert ("x is "+x);and got "x is 3". my questions are: why delete seems to not work? when are you expected to use it? is there a URL where I can find explanation about destructors in general?
Thanks!!
- Login or register to post comments
- Subscribe post
