Hello,
question to localization:in GridView: i succeeded in changing captions for example from duration to Dauer. But how to change the units in this column from hours to Stunden, day(s) to Tag(e) and so on?
I succeded to change the field names in diaolog "Field chooser" but how to change the title of this dialog?
I found http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.1/CLR2.0/html/WinSchedule_Resource_Strings.htmlbut I don´t know how to apply them.
question context menu in GanttView:Is it possible to install a context menu on dependeny lines? How?
Thanks for help,
joerg
Your answer is very good! All questions answered (though you switched "IGMenuItem" and menuItem (MenuItem) ).Thank you.
One question I forgot:how to change the titel of "Field Chooser" dialog to "Feldauswahl" ?
Jörg
iXsystems said:But how to change the units in this column from hours to Stunden, day(s) to Tag(e) and so on?
Infragistics.Win.UltraWinGanttView.Resources.Customizer.SetCustomizedString( "TimeSpanEditor_DayDisplayString_Singular", "tag");
Infragistics.Win.UltraWinGanttView.Resources.Customizer.SetCustomizedString( "TimeSpanEditor_DayDisplayString_Plural", "tage");
Each unit of time has a corresponding string resource, following the same convention as above, i.e., WeekDisplayString, HoutrDisplayString, MinuteDisplayString, and each has a Singular/Plural variant
iXsystems said:Is it possible to install a context menu on dependeny lines?
using nsGVElements = Infragistics.Win.UltraWinGanttView.UIElements;
this.ganttView.AutoDisplayDefaultContextMenu = AutoDisplayDefaultContextMenu.GridAreaOrChartArea;this.ganttView.ContextMenuInitializing += new ContextMenuInitializingHandler(ganttView_ContextMenuInitializing);
void ganttView_ContextMenuInitializing(object sender, ContextMenuInitializingEventArgs e){ UltraGanttView control = sender as UltraGanttView; UIElement controlElement = control.UIElement; Point clientPos = control.PointToClient(Control.MousePosition); UIElement elementAtPoint = controlElement != null ? controlElement.ElementFromPoint( clientPos ) : null;
nsGVElements.TaskDependencyLineUIElement lineElement = elementAtPoint as nsGVElements.TaskDependencyLineUIElement;
if ( lineElement != null ) { TaskDependency dependency = lineElement.GetContext( typeof(TaskDependency) ) as TaskDependency; IGMenuItem menuItem = new IGMenuItem("Dependency"); e.ContextMenu.MenuItems.Add( menuItem ); }}