RadListView drag and drop - Winforms C# -
i have been working on issue month can't seem solve it. trying drag item radlistview1 radlistview2. don't want move or copy item radlistview2. want combine item item on when release mouse button on radlistview2 , display in radlistview3. example. drag song name on singer , combine singer , songname radlistview3.
i can't figure out drag events , how item dragged in radlistview2. didn't confuse heck out of you.
any appreciated. i've looked @ telerik docs forever can't it.
thanks.
i can't work
private void dragdropservice_previewdragover(object sender, raddragovereventargs e) { e.candrop = e.hittarget detaillistviewdatacellelement || e.hittarget detaillistviewelement; debug.writeline("previewdragover triggered"); } private void dragdropservice_previewdragdrop(object sender, raddropeventargs e) { baselistviewvisualitem draggeditem = e.draginstance baselistviewvisualitem; detaillistviewdatacellelement cellelement = e.hittarget detaillistviewdatacellelement; detaillistviewelement viewelement = e.hittarget detaillistviewelement; if (cellelement == null && viewelement == null) { debug.writeline("all null...returning"); return; } e.handled = true; if (viewelement != null) debug.writeline("over viewelement"); if (cellelement != null) debug.writeline("over cellelement"); }
see this article, in previewdragdrop event, have draginstance , hittarget.
Comments
Post a Comment