Hi,
Is it possible to show a dropdown list of resources in resource names (grid part) of the winganttView ?
thanks
sorry for late answer , first I couldn't use the code (I'm using your GanttChart in a wpf application) so I thought may be it's because of WPF environment but with a little change it's working fine now ,thanks .
BTW for resources you have to change the seprator :
ultraComboEditor1.CheckedListSettings.ListSeparator = ", ";
Hello,
I just checking the progress of this issue. Did you able to test my code sniped ?
Just let me know if you need any further assistance with this.
After some research I found a way to achieve your goal. First drag UltraComboEditor on your form, where is UltraGanttView. Then use following code sniped in your code:
// set CheckBoxStyle to the UltraComboEditor
ultraComboEditor1.CheckedListSettings.CheckBoxStyle = CheckStyle.CheckBox;
// set the separator for the cheeked Items, be sure tht this separator should be used at the name of the Items at all
ultraComboEditor1.CheckedListSettings.ListSeparator = ";”;
ultraComboEditor1.CheckedListSettings.EditorValueSource = EditorWithComboValueSource.CheckedItems;
IProvidesEmbeddableEditor editor = (IProvidesEmbeddableEditor)ultraComboEditor1;
ValueList comboBinding = new ValueList();
for (int i = 0; i < 10; i++)
{
comboBinding.ValueListItems.Add("Item" + i.ToString());
}
ultraComboEditor1.ValueList = comboBinding;
this.ganntView1.GridSettings.ColumnSettings[TaskField.Name].Editor = editor.Editor;
Let me known if you have any further questions.
Thank you very much it's working fine now just I couldn't find how to enable the multi select option .
Brian has said in his post to set the editorWithCombo's multiSelect to true but I couldn't find such property .
Hello ,
You could use the following code snippet to set value list to the first column of Gantt’s grid (TaskField.Name column)
EditorWithCombo combo = new EditorWithCombo();
for (int i = 0; i < 10; i++ )
comboBinding.ValueListItems.Add("Item " + i.ToString());
this.ganntView1.GridSettings.ColumnSettings[TaskField.Name].Editor = combo;
this.ganntView1.GridSettings.ColumnSettings[TaskField.Name].ValueList = comboBinding;
Let me know if you have any further questions.