Categories | Question details Back To List | ||
Drag from grid drop in div Dear Team, This is a follow up of my previous question (drag row and drop on form element) where I managed to drag a row to a form element... In a knowledge base example (Drag And Drop in menu) I've seen that it is possible to drag an element/row to a div. But with my current code I can't get it to work. For example: <table width="600px"> Doesn't work for sInput. I can see it light up on hover (dragIn) but when 'it drops' it doesn't show. Could you please help me? Answer posted by Support on Jul 09, 2008 01:23 There are two typos in your code var sinput=document.getElementById('sInput'); must be var sinput=document.getElementById('sInput1'); targetHtmlObject.value=mygrid2.cells(mygrid2._dragged[0].idd,0).getValue must be targetHtmlObject.innerHTML=mygrid2.cells(mygrid2._dragged[0].idd,0).getValue(); With them fixed, all works correctly |