I have had a window that has a carousel of users in ASPx and some tasks to do and want each element of the carousel to be draggable, Drag and Drop type and when it is positioned on top of a task, that user is associated with the homework and I'm front and I do not know ASPx.
ASPx
<div class="col-xs-12 col-md-4 clearfix pull-right">
<dxc:ASPxCallbackPanel ID="cbRecursos" ClientInstanceName="cbRecursos" runat="server" settingsloadingpanel-enabled="false">
<PanelCollection>
<dxc:PanelContent>
<div id="Panel_Recursos" class="Panel_Recursos" ClientInstanceName="Panel_Recursos" runat="server" visible="false"></div>
</dxc:PanelContent>
</PanelCollection>
</dxc:ASPxCallbackPanel>
</div>
Aspx.VB
If ds.Tables(0).Rows.Count > 0 Then
Panel_Recursos.Controls.Clear()
For Each fila As DataRow In ds.Tables(0).Rows
contenidoPopover = ""
Dim btnPersonal As New ASPxButton
Dim img As New ASPxBinaryImage
btnPersonal.ID = fila("PERSONAL_ID")
btnAcciones.ClientInstanceName = "btn_Recurso_" & fila("PERSONAL_ID")
btnPersonal.Text = fila("Acronimo")
btnPersonal.Attributes.Add("data-toggle", "popover")
btnPersonal.Attributes.Add("EncodeHtml", "True")
btnPersonal.Attributes.Add("RenderMode", "Link")
btnPersonal.Attributes.Add("draggable", "True")
contenidoPopover &= "<div class='strNamePersonal'>" & fila("PERSONAL") & " </div>"
btnPersonal.Attributes.Add("data-content", contenidoPopover)
If fila("RESPONSABLE") = True Then
btnPersonal.CssClass = "iconmoon-user4 ico-16 icono-btn-personal" 'Jefe Proyecto
Else
btnPersonal.CssClass = "iconmoon-user ico-16 icono-btn-personal" 'Personal
End If
btnPersonal.Width = 30
btnPersonal.ToolTip = fila("PERSONAL")
If Trim(hPersonal_id.Value) <> "" Then
If Trim(hPersonal_id.Value) = fila("PERSONAL_ID") Then
btnPersonal.Attributes.Add("data-class", "active")
Else
'btnPersonal.ForeColor = System.Drawing.Color.Black
End If
End If
btnPersonal.AutoPostBack = False
btnPersonal.ClientSideEvents.Click = "function(s, e) { filtrarRecurso(" & fila("PERSONAL_ID") & ");}"
Panel_Recursos.Visible = True
Panel_Recursos.Controls.Add(btnPersonal)
Next
End If
This is the VB where users load and paint by window
IMG informative of what I need:
The ASPX shows the users (JAL, JGF ...) and I need you to click on them and drag them to one of the tasks as shown in the image.
If it were HTML it would be easier for me since with Bootstrap and / or JQuery I could do it, when I try to put the html that I get when I inspect the element in order to at least try to do something and then associate it with the ASPx but I can not do it well because I do not load the page.
How could I make each user that loads me drag and when he returns he returns to his site?
Thank you very much