We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Chart as float chart in Grid Control

Thread ID:

Created:

Updated:

Platform:

Replies:

90158 Sep 18,2009 06:05 PM UTC Sep 25,2009 11:52 AM UTC WinForms 5
loading
Tags: GridControl
Xiao Hua Huang
Asked On September 18, 2009 06:05 PM UTC

Hi I would like to have a chart place in the grid (embeded), and the user can select the chart and drag it to anywhere on the Grid and snap to the grid nodes. Do you have a sample on how to achieve this?

Also in the Chart Cell demo project from the installation, the interactive cell value and chart doesn't seem to work. I change the value in the cell, but the chart does not update accordingly.
Could you help me how to get this work?

Thanks.

Jisha Joy [Syncfusion]
Replied On September 22, 2009 12:50 PM UTC

Hi Xiao,

Currently we are not having any sample that displays chart as floated one. Regarding the issue in Chart Cell demo sample, we are able to see the issue and will update you the details within two business days.

Regards,
Jisha

Xiao Hua Huang
Replied On September 23, 2009 01:30 AM UTC

Thanks Jisha, We are looking forward to see the sample of how to set the chart control as floating chart (user can move anywhere in the grid, just like in Excel).

Best!

Jisha Joy [Syncfusion]
Replied On September 23, 2009 01:40 PM UTC

Hi Xiao,

The GridControl is a cell oriented control. We can have chartcontrol embed in grid cell as in chart cell demo. But it is not possible to have chartcontrol can be displayed as a floating component over grid.

Please let me know if you have any questions.

Regards,
Jisha

Xiao Hua Huang
Replied On September 23, 2009 04:58 PM UTC

Hi Jisha,

After doing some study I think it might be possible. I looked at the chartCell sample and realize the chart displayed on the grid is actually an image, in the sample it just export the image to the grid cell, and it looks like the chart is embeded. So maybe we can use a mouse down/up event to assign the picture to the new location, so it will look like being moved.

Do you think this approach will work? Sorry I am new to the control and get quite a few questions.

Xiao

Jisha Joy [Syncfusion]
Replied On September 25, 2009 11:52 AM UTC

Hi Xiao,

In Gridcontrol items can be dragged from one cell to another cell by OLE drag and drop support. To initiate a D&D action, you must first select a range of cells (could be a row/rows), then you must move the cursor close to any border of a selection to get the drag drop cursor displayed. You can then mouse down and drag the selection either to a new place in the same grid. This feature can be enabled by setting the AllowDrop property to true.

this.gridControl1.AllowDrop=true;

Thanks,
Jisha

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;