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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

gridGroupingControl with Gantt Control - Forms/WPF

Thread ID:

Created:

Updated:

Platform:

Replies:

123520 Mar 24,2016 03:57 PM UTC May 14,2016 10:04 AM UTC WPF 22
loading
Tags: GanttControl
Gregory Pe
Asked On March 24, 2016 03:57 PM UTC

Hi.
how to connect data from gridGroupingControl 1
with Gantt Control

changes in the chart were written in the table


Regards,
Grzegorz


Attachment: test_Gantt_002_7bcf748.zip

Santhiya Arulsamy [Syncfusion]
Replied On March 29, 2016 11:42 AM UTC

Hi Grzegorz,

We have analyzed your requirement. In the sample data set bound to the GridGroupingControl, it is not compatible with GanttControl, so that need to parse the data set and convert it into the generic collection by using following steps.

Step 1:

Need to create a template class with properties to hold the each column values of DataSet.

Public class Model
{
// First column value holder
Public DataType ColumnName1{ get; set; }
Public DataType ColumnName2{ get; set; }
.
.
.
Public DataType ColumnNameN{ get; set; }
}

Step 2:

Generate a record for each row in the Dataset and add it into the collection.

ObservableCollcetion<Model> collection = new ObservableCollcetion<Model>();

Collection.Add(new Model()
{
ColumnName1 = GridGroupingControl.DataSet.Column1.
ColumnName2 = GridGroupingControl.DataSet.Column2.
});

Step 3:

Bind the collection to the GanttControl ItemsSource property.

Refer to the following code sample for further reference.

http://help.syncfusion.com/wpf/gantt/data-binding

Thanks,
Santhiya A

Gregory Pe
Replied On March 29, 2016 04:37 PM UTC

Hi Santhiya

I tried, but I did not work...
 send me please  a modified sample



Regards,
Grzegorz


Santhiya Arulsamy [Syncfusion]
Replied On March 30, 2016 01:33 PM UTC

Hi Grzegorz,
Thanks for your update.
We have modified the sample to achieve your requirement. Please find the sample from the following location.
Sample:  test_Gantt_002
Refer to the following UG link for further information.
http://help.syncfusion.com/wpf/gantt/getting-started
Thanks,
Santhiya A

Gregory Pe
Replied On March 30, 2016 07:12 PM UTC

Hi Santhiya

thank you very much .
it's good

but how to:
1.
refresh  gridGroupingControl1
2. save
changes to the table
"projekt" in test009.sdf

Regards,
Grzegorz


Sumathi Jayaraj [Syncfusion]
Replied On March 31, 2016 01:06 PM UTC

Hi Grzegorz,

Thanks for the update.

Query 1: How to  refresh gridGroupingControl?

The GridGroupingControl can be refreshed by the Refresh() method. This forces the grid to invalidate the modifications and also repaints the grid. 
The Reload() and Update() methods can be used to save the modifications done in the datasource schema and updates the grid engine.
Please refer to the below code example.


Code Example:      
// Forces the grid to invalidate the modifications done and repaints the parent table and child table also.
this.gridGroupingControl1.Refresh();

// The grid gets refreshed and updates the cell values.
this.gridGroupingControl1.Table.Reload();

// Updates the display when modifications are done in the grid engine and datasource schema
this.gridGroupingControl1.Update();

Query 2: How to save changes to the table?

Please provide more details regarding the requirement. This would be helpful for us to provide you the better solution.

Regards,
Sumathi J

Gregory Pe
Replied On March 31, 2016 03:09 PM UTC


Hi Sumathi

I
just tried but did not work

Please update Santhiya A example:
Sample:  test_Gantt_002
Regards,
Grzegorz


Gregory Pe
Replied On March 31, 2016 03:23 PM UTC


Hi Sumathi

I
just tried but did not work

Please update Santhiya A example:
Sample:  test_Gantt_002
Regards,
Grzegorz



Hi Sumathi

I
just tried but did not work


changes gantt in the chart were written in the gridGroupingControl 1 and table

Please update Santhiya A example:
Sample:  test_Gantt_002
Regards,
Grzegorz


Sumathi Jayaraj [Syncfusion]
Replied On April 2, 2016 05:05 AM UTC

Hi Grzegorz,

Thanks for the update.

We have modified the sample to save the changes made in Gantt chart to the table and grid grouping cotrol. The sample can be downloaded from the following location.

Sample: http://www.syncfusion.com/downloads/support/forum/123520/ze/test_Gantt_0021417653750 

Thanks,
Sumathi J

Sumathi Jayaraj [Syncfusion]
Replied On April 2, 2016 05:07 AM UTC

Hi Grzegorz,

Please find the sample attachment here.

Thanks,
Sumathi J

Attachment: test_Gantt_002_3d7003ed.zip

Gregory Pe
Replied On April 2, 2016 07:27 AM UTC

Hi Grzegorz,

Please find the sample attachment here.

Thanks,
Sumathi J

Attachment: test_Gantt_002_3d7003ed.zip

Hi Sumathi J

is very well, thank you

Thanks,
Grzegorz

Samuel Rajadurai Edwin Rajamanickam [Syncfusion]
Replied On April 4, 2016 06:11 AM UTC

Hi Grzegorz,

 

Thanks for the update.

 

Regards,

Samuel


Gregory Pe
Replied On April 4, 2016 09:49 AM UTC

Hi Grzegorz,

Please find the sample attachment here.

Thanks,
Sumathi J

Attachment: test_Gantt_002_3d7003ed.zip

Hi Sumathi J

is very well, thank you

Thanks,
Grzegorz

Hi Sumathi J

how to make:
MouseDoubleClick  the gantt object Form2 opens and passes selected object Gannt / Task, Start Date, Stop Date,
Sample:  test_Gantt_002

//  ItemsSource="{Binding Project}" MouseDoubleClick="GanttControl_MouseDoubleClick" >

 private void GanttControl_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            string s = "Residential Construction1234";//??????? selected object Gannt  Task
            string d1 = "2016-02-07 20:24:00";;//??????? selected object Gannt Start Date
            string d2 = "2016-02-23 12:00:00";;//??????? selected object Gannt  Stop Date
            Form2 f = new Form2(s,d1,d2);
            f.Show();
        }

public Form2(string ss, string d1, string d2)
        {
            InitializeComponent();
            textBox1.Text = ss;
            textBox4.Text = d1;
            textBox5.Text = d2;
        }


Regards,
Grzegorz

Attachment: MouseDoubleClick_in_gantt_open__Form2_59636ea.zip

Sumathi Jayaraj [Syncfusion]
Replied On April 5, 2016 12:46 PM UTC

Hi Grzegorz,
 
Thanks for the update.
 
We are able to achieve your requirements by getting selected node from nodes collection in the gantt grid. We have prepared a sample to meet your requirements and it can be downloaded from the following location.
 
Sample: test_Gantt_Chart


Regards,
Sumathi J

Gregory Pe
Replied On April 5, 2016 02:10 PM UTC

Hi Grzegorz,
 
Thanks for the update.
 
We are able to achieve your requirements by getting selected node from nodes collection in the gantt grid. We have prepared a sample to meet your requirements and it can be downloaded from the following location.
 
Sample: test_Gantt_Chart


Regards,
Sumathi J

Hi Sumathi J

is very well, thank you

Thanks,
Grzegorz

Sumathi Jayaraj [Syncfusion]
Replied On April 6, 2016 05:07 AM UTC

Hi Grzegorz,

Thanks for the update. Please let us know if you have any queries.

Regards,
Sumathi J

Gregory Pe
Replied On April 13, 2016 11:34 AM UTC

Hi Grzegorz,

Thanks for the update. Please let us know if you have any queries.

Regards,
Sumathi J

Hi Sumathi J

how to map to Gantt
 ResourceInfoMapping="Resource"   from test009DataSet.ResourceRow- gridGroupingControl2
 PredecessorMapping="Predecessor" from test009DataSet.PredecessorRow- gridGroupingControl3

Regards,
Grzegorz

Attachment: test_Gantt_002b_b7690def.zip

Samuel Rajadurai Edwin Rajamanickam [Syncfusion]
Replied On April 15, 2016 06:28 PM UTC

Hi Grzegorz,

We are currently working on this, we will update you in one business day 18 April, 2016.

Regards,
Samuel


Santhiya Arulsamy [Syncfusion]
Replied On April 19, 2016 01:40 PM UTC

Hi Grzegorz,

Thanks for the patience.

We have modified the sample to map the resources and predecessor to the GanttControl. Please find the sample in the below location.

Sample: test_Gantt_002b

Please refer to the following UG link for further information.

http://help.syncfusion.com/wpf/gantt/dependency-relationship


Note: Please check with the GeneateData() in Form1.cs regarding changes in the sample.

Thanks,
Santhiya A


Attachment: test_Gantt_002b_868da313.zip

Gregory Pe
Replied On April 20, 2016 07:30 PM UTC

Hi Grzegorz,

Thanks for the patience.

We have modified the sample to map the resources and predecessor to the GanttControl. Please find the sample in the below location.

Sample: test_Gantt_002b

Please refer to the following UG link for further information.

http://help.syncfusion.com/wpf/gantt/dependency-relationship


Note: Please check with the GeneateData() in Form1.cs regarding changes in the sample.

Thanks,
Santhiya A


Attachment: test_Gantt_002b_868da313.zip

Hi. Santhiya A

how to run a call relationship in the chart Gantt

I can not see the connections Relationship


Regards,
Grzegorz



Attachment: test_Gantt_002b_(8)_9e932404.zip

Santhiya Arulsamy [Syncfusion]
Replied On April 21, 2016 12:29 PM UTC

 

Hi Grzegorz,

 

Thanks for the update.

 

We are not able to run the attached sample. We are getting the KeyNotFound exception. Please find the call stack of this error.

 

Call Stack:

   

at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

   at Syncfusion.Windows.Controls.Gantt.GanttModel.OnPropertyChanged(Object sender, PropertyChangedEventArgs e)

   at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)

   at test_Gantt_002b.Model.OnPropertyChanged(PropertyChangedEventArgs e) in c:\Users\santhiya.arulsamy\Downloads\test_Gantt_002b_(8)_9e932404\test_Gantt_002b\test_Gantt_002b\Form1.cs:line 530

   at test_Gantt_002b.Model.set_Finish(DateTime value) in c:\Users\santhiya.arulsamy\Downloads\test_Gantt_002b_(8)_9e932404\test_Gantt_002b\test_Gantt_002b\Form1.cs:line 411

We have prepared the simple predecessors sample for your reference. Please check the predecessor data format is as like in the sample attachment.

 

Sample:EssentialGantt

 

Thanks,

Santhiya A


Attachment: EssentialGantt_a22605c.zip

Samuel Rajadurai Edwin Rajamanickam [Syncfusion]
Replied On April 21, 2016 01:53 PM UTC

Hi Grzegorz,

Please ignore the previous update. We will update you on 22nd April, 2016.

Thanks,
Samuel

Samuel Rajadurai Edwin Rajamanickam [Syncfusion]
Replied On April 22, 2016 11:32 AM UTC


Hi Grzegorz,

We need to analyse more about DB data in the sample for connection relationship, so support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Regards,
Samuel 


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

;