Page 1 of 1

drag-drop from additional list

Posted: Tue Feb 07, 2017 9:00 pm
by FrenkR
Hi,
using latest MobileDesigner, MobileViewer.
I implemented additional panel with list of some labels on it(helpers when creating a report). I would like to implement drag-drop functionality from this panel to a report in a way that is implemented from dictionary to report.
Can you help me with a simple example on how to set source (drag) object to be valid for a drop into a report band, please?

Re: drag-drop from additional list

Posted: Wed Feb 08, 2017 9:51 pm
by Alex K.
Hello,

Could you explain your issue in more details?
If possible, please send us a simple project or screenshots for analysis.

Thank you.

Re: drag-drop from additional list

Posted: Thu Feb 09, 2017 6:34 am
by FrenkR
current application has defined "text" layout with bands. To easily (re)design a template in a stimulsoft reporter, I would like to create "helper" custom panel with fields as they are defined in an existing report. This panel should have "drag" capability. So, fields from this preview should be easily dragged and dropped to a report.
Question here is, what structure must this fields have that drag/drop functionality will work same way as from data dictionary.

Re: drag-drop from additional list

Posted: Thu Feb 09, 2017 12:15 pm
by Alex K.
Hello,

Can you please send us a simple project in which uses your panel.
We need to check structure and types of objects which placed on this panel.

Thank you.

Re: drag-drop from additional list

Posted: Thu Feb 09, 2017 7:52 pm
by FrenkR
basic template inside "aspx" file:

Code: Select all

<div id="templateViewer" class="panel">
            <div style="position:relative;top:10px;left:10px;width:60px;height:25px;overflow:hidden;" class="stiDesignerTreeItemButtonSelected_Mouse">Drag me</div>
            <div style="position:relative;top:10px;left:80px;width:60px;height:25px;overflow:hidden;" class="stiDesignerTreeItemButtonSelected_Mouse">Drag me</div>
            <div style="position:relative;top:40px;left:5px;width:60px;height:25px;overflow:hidden;" class="stiDesignerTreeItemButtonSelected_Mouse">Drag me</div>
            <div style="position:relative;top:40px;left:70px;width:90px;height:25px;overflow:hidden;" class="stiDesignerTreeItemButtonSelected_Mouse">Drag me</div>
        </div>
Idea is to use "drag-drop" functionality for each "div" section. When "Drag me" is dropped on a "band" or page in designer, "Text" control should be placed into band/page with "expression" filed.

complete sample project of injected data is attached.

Re: drag-drop from additional list

Posted: Fri Feb 10, 2017 12:37 pm
by Alex K.
Hello,

Thank you for the sample project.
We need some time to check the issue. We will let you know about the result.

Thank you.

Re: drag-drop from additional list

Posted: Mon Feb 13, 2017 11:24 am
by Alex K.
Hello,

Please check the sample at the following link:
https://drive.google.com/open?id=0Bx_-- ... jJuWVgzNjA

Thank you.

Re: drag-drop from additional list

Posted: Tue Feb 14, 2017 10:48 am
by FrenkR
perfect, thanks :)

Re: drag-drop from additional list

Posted: Tue Feb 14, 2017 11:39 am
by Alex K.
Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.