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.
Unfortunately, activation email could not send to your email. Please try again.

how to set the control as read-only

Thread ID:

Created:

Updated:

Platform:

Replies:

104321 Jul 10,2012 12:16 PM Oct 24,2013 08:04 AM WPF 5
loading
Tags: GanttControl
Jorge Pampin
Asked On July 10, 2012 12:16 PM

Hello,
 
How to set the control as read-only?
 
Thanks!

Riyaj Ahamed I [Syncfusion]
Replied On July 11, 2012 08:21 AM

Hi Jorge,

 

Thanks for your interest in Syncfusion products.

 

We analyzed your query, you can achieve this requirement by setting the ReadOnly property of “GanttGrid” as  True and IsEnabled property of “GanttChart” as false.

We have created the sample based on this and it can be downloaded from the following link.

 

Sample: ReadOnlyControl.zip

 

Note: We do not have support for the direct API to set the “GanttControl” as readonly as of now.

 

 

Please let us know if you require any further assistance on this.

 

Regards,

Riyaj Ahamed I



ReadOnlyControl_589c03dd.zip

Ronny Weil
Replied On January 21, 2013 09:21 AM

Hi Riyaj Ahamed I,

 

your solutions works but the control is now disable. That means:

 no tooltip

wrong color for text ( gray)

 

I need a solution where i can use tooltips.

 

Regards

 

Ronny  




Riyaj Ahamed I [Syncfusion]
Replied On March 7, 2013 05:27 AM

Hi Ronny,

 

Sorry for the inconvenience caused.

 

We have analyzed your query. When we set the “IsEnabled” property of the “UIElement” as “false” , the UIElement does not show the tooltip. This is the default behavior of Microsoft controls.

 

If you only need to disable the resizing, drag drop functionality of the GanttNode,  you can use the following events,

·         GanttControl.NodeDragCompleted

·         GanttControl.NodeResizingCompleted

 

By handling these events you can disable the resizing, drag drop functionality of the GanttNode.

 

Note: These events are included from our 10.3.0.43 version.

 

Please let us know if you have any concern.

 

Regards,

Riyaj Ahamed I


Alexander Heimonen
Replied On October 23, 2013 08:28 AM

How should the events be handled? I have tried something similiar to this because I can't prevent the actual event to be fired:

this.Gantt.NodeDragCompleted += GanttNodeDragCompleted;

private void GanttNodeDragCompleted(object sender, NodeDragAndDropEventArgs args)
{
    args.Node.X1 += args.HorizontalChange;
    args.Node.X2 += args.HorizontalChange;
}

But it has no effect, I guess I should somehow find the nodes in the Gantt Control and perform the change on them?

Jai Ganesh S [Syncfusion]
Replied On October 24, 2013 08:04 AM

Hi Alexander,

 

Thanks for using Syncfusion products.

 

We have analyzed your query.”GanttNode.X1” and “GanttNode.X2”  are properties ,which helps to position the GanttNode in the GanttChart area. Also X1 and X2 value are calculated internally by using GanttNode.StartTime and GanttNode.EndTime value. Hence the change occurs with  x1 and x2 values in NodeDragCompleted event and it was not reflected. However you can achieve your requirement by using the following event arguments  “args.StartTime”,”args.EndTime” .

 

Please let us know if you need further assistance.

 

Thank you,

Jai Ganesh S


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.

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.

;