drag-drop from additional list

Stimulsoft Reports.WEB discussion
Post Reply
FrenkR
Posts: 131
Joined: Mon Jan 05, 2015 12:15 am

drag-drop from additional list

Post 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?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: drag-drop from additional list

Post 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.
FrenkR
Posts: 131
Joined: Mon Jan 05, 2015 12:15 am

Re: drag-drop from additional list

Post 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.
Attachments
_customPanel.png
_customPanel.png (97.75 KiB) Viewed 4919 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: drag-drop from additional list

Post 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.
FrenkR
Posts: 131
Joined: Mon Jan 05, 2015 12:15 am

Re: drag-drop from additional list

Post 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.
Attachments
StimulsoftDragDrop.zip
(9.45 KiB) Downloaded 402 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: drag-drop from additional list

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: drag-drop from additional list

Post by Alex K. »

Hello,

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

Thank you.
FrenkR
Posts: 131
Joined: Mon Jan 05, 2015 12:15 am

Re: drag-drop from additional list

Post by FrenkR »

perfect, thanks :)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: drag-drop from additional list

Post by Alex K. »

Hello

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

Thank you.
Post Reply