Hi friends,
This is kishor.
I am going to develop the new reporting servrice using asp.net
so i need some help,
how to mange the different controls on the report.
how i am able to drag & drop the controls and set or bind the control to the related values.

Dani AI

Generated

Short, practical guidance for a runtime, drag‑and‑drop report designer (answers tied to the thread)

Decide first, as and asked, whether the UI must work in the browser for end users (runtime) — that’s the usual case for “design your report at runtime.” Use client‑side drag/drop for the editor surface and persist a small description of each control (type, position, size, data binding) to the server. The browser provides a native Drag & Drop API you can use for simple cases. (developer.mozilla.org)

If building your own designer, use a proven JS library (handles cross‑browser quirks and touch): jQuery UI for quick draggable/droppable behavior, or a modern library like interact.js for drag, resize and multi‑touch. Model each placed object as JSON (type, x/y, width/height, dataField, style, expressions), send it via AJAX, and store that JSON as the “design.” Example save call (very small):

const design = [{type:'textbox', x:10, y:20, width:200, dataField:'OrderID'}];

fetch('/api/report/save', {
  method: 'POST',
  headers: {'Content-Type':'application/json'},
  body: JSON.stringify(design)
});

Prototyping with a client canvas + library is faster than inventing low‑level pointer handling. (api.jqueryui.com)

On the server you have two common choices: convert the JSON into an RDL/RDLC definition (RDL is an XML schema used by SSRS/ReportViewer) and render with ReportViewer, or render the saved JSON directly to HTML/PDF yourself. RDL is a documented XML report format, so programmatic conversion is feasible but requires mapping layout + bindings to the RDL schema. (learn.microsoft.com)

Because this is non‑trivial (as and noted), consider embedding a commercial runtime report designer if deadlines matter — vendors provide ready editors that export RDL/RDLC. Also watch for touch support, coordinate systems (use page units or percentages for printing), z‑order, and accessibility when you implement drag, resize and binding. (stimulsoft.com)

Recommended Answers

All 9 Replies

Can you be more clear in your question...
1.Do you want to build an application that enables you to drag and drop the webcontrols and set the properties of them.
or
2.Do you want to create some new webcontrols and add them as a part of your VS.NET.

When you say "controls", do you mean ASP.NET Server Controls? When you say "drag and drop", do you mean, you want the client to be able to drag and drop things in the context of the final page? Or are you asking how to use your development IDE? What development IDE are you using?

You question isn't nearly specific enough to generate much in the way of responses.

I want the client to be able to drag and drop things in the context of the final page?

so he is able to design his report at run time usind RDL.

Hi,

I want to make one small web application in which I can able to drag and drop objects like circle, rentangle,line etc. in webform or Iframe and set the properties of them.

How can i do in asp.net...plz let me know if u guys have did this type of work...

waiting for hopfully reply...

Regards,
Jagdish Sakhiya
IVAPS Pvt Ltd, Bangalore

Jagdish_ce, Please don't double post!

Here is something that may help you:

a link to something similar

Hi,

I want to make one small web application in which I can able to drag and drop objects like circle, rentangle,line etc. in webform or Iframe and set the properties of them.

How can i do in asp.net...plz let me know if u guys have did this type of work...

waiting for hopfully reply...

Regards,
Jagdish Sakhiya
IVAPS Pvt Ltd, Bangalore

Hi,

Thanks for reply,

But I want this type of work in web Application.

How can we do it?

waiting for reply.

Regards,
Jagdish Sakhiya
IVAPS Pvt Ltd,Bangalore

Have you looked at any of the literally hundreds of discussions and scripts for DHTML drag/drop on the web? I'm still not clear if you want to do this CLIENT SIDE, or whether you are asking about ASP.NET server-side controls.

You also say you want to set the "properties" of graphic objects. What properties?

I agree tgreer he is being rather vague and jagdish_ce I did a quick search on google and came up with this: LINK - ASP.NET

Hope this helps.

Yes you can make do it. I've seen it on one of the commercial ASP.NET Intranet posted on www.aspin.com. This is not an easy task to do. Your asking a more advanced Web application here. How good are u on ASP.NET?

Dexter

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.