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. Image for the cookie policy date

gridGroupingControl with Gantt Control - Forms/WPF

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

22 Replies

SA Santhiya Arulsamy Syncfusion Team 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


GP Gregory Pe March 29, 2016 04:37 PM UTC

Hi Santhiya

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



Regards,
Grzegorz



SA Santhiya Arulsamy Syncfusion Team 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


GP Gregory Pe 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



SJ Sumathi Jayaraj Syncfusion Team 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


GP Gregory Pe 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



GP Gregory Pe replied to Gregory Pelczar 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



SJ Sumathi Jayaraj Syncfusion Team 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


SJ Sumathi Jayaraj Syncfusion Team April 2, 2016 05:07 AM UTC

Hi Grzegorz,

Please find the sample attachment here.

Thanks,
Sumathi J

Attachment: test_Gantt_002_3d7003ed.zip


GP Gregory Pe replied to Sumathi Jayaraj 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


SR Samuel Rajadurai Edwin Rajamanickam Syncfusion Team April 4, 2016 06:11 AM UTC

Hi Grzegorz,

 

Thanks for the update.

 

Regards,

Samuel



GP Gregory Pe replied to Gregory Pelczar 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


SJ Sumathi Jayaraj Syncfusion Team 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


GP Gregory Pe replied to Sumathi Jayaraj 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


SJ Sumathi Jayaraj Syncfusion Team 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


GP Gregory Pe replied to Sumathi Jayaraj 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


SR Samuel Rajadurai Edwin Rajamanickam Syncfusion Team 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



SA Santhiya Arulsamy Syncfusion Team 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


GP Gregory Pe replied to Santhiya Arulsamy 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


SA Santhiya Arulsamy Syncfusion Team 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


SR Samuel Rajadurai Edwin Rajamanickam Syncfusion Team April 21, 2016 01:53 PM UTC

Hi Grzegorz,

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

Thanks,
Samuel


SR Samuel Rajadurai Edwin Rajamanickam Syncfusion Team 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 


Loader.
Up arrow icon