asp.net - Change Visual Drag and Drop Clue in RadGrid? -


when dragging , dropping radgrid shows columns being dragged mouse move, can of drag 1 or few items if u drag more hideous , occupy alot of space block u seeing element dopping on ?

answer: have faced solution in project , solution :

1) attach gridcreated event radgrid

<clientsettings allowrowsdragdrop="true">        <selecting allowrowselect="true" enabledragtoselectrows="true"></selecting>        <clientevents ongridcreated="gridcreated" /> </clientsettings> 

2) write javascript function change visual trail :

function rowdragging(sender, eventargs) {            var row = sender._draggedrow;            row.innerhtml = "<div style='color:green;width:60px;margin-left:10px;'>  drop on element</div>";            row.style.width = 0 + "px";            row.style.height = 0 + "px";        } 

regards


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -