RadiantQ WPF Gantt
How to get hold of the IFlexyNodeData of a given object in the bound data source?
| ![]() ![]() |
How to get hold of the IFlexyNodeData of a given object in the bound data source?
Each row in the FlexyGantt is represented by an instance of IFlexyNodeData. Objects in your bound data source (set as FlexyGantt's ItemsSource) representing a row in FlexyGantt will then have a corresponding IFlexyGanttNode instance. You can get hold of it as follows:
// Get hold of the IFlexyNodeData corresponding to the very first item in the bound list (note below assumes your ItemsSource is an IList) IFlexyNodeData fnd = this.fxgantt.FlatTreeItemsSource[((IList)this.fxgantt.ItemsSource)[0]]; // Verify if the data is the same as your object in the data source. var data = fnd.Data; |
� RadiantQ 2009 - 2019. All Rights Reserved.