Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1815
Task Bar Height and Grid Row Height
posted

I am using a creation filter to change the text for the Task Bar. This is working fine with the task text = Task Name +vbcrlf + TaskStartDate + "to" + TaskStopDate

However I want to automatically re-size the bar to fit in the text. Any suggestions?

Also if I fix the Task Bar Height to say 65, the Grid Row height does not change so once again I have Tasks in the grid that do not align with the bars.

This is very unfortunate especially when showing Finish to start links as the links end up on the wrong bars an this need to be fixed or worked around

Please help...Thanks

Parents
  • 1815
    Offline posted

    I have got this code now:

               Dim ug As UltraGrid = TryCast(ugv.[GetType]().GetField("grid", System.Reflection.BindingFlags.CreateInstance Or System.Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic).GetValue(ugv), UltraGrid)
                ug.DisplayLayout.Bands(0).Override.CellMultiLine = DefaultableBoolean.[True]
                For Each row As UltraGridRow In ug.Rows
                    If row.ListObject.task.Issummary = False Then
                        row.Height = ugv.TimelineSettings.BarSettings.BarHeight
                    End If
                Next
    and that works reasonably well except for two issues
    a) The bar height seems to have a maximum and if the bar length is shortened and the maximum bar height is exceed (whatever that is)
    then potentially the text will be scrolled completely out of the bar

    b) The Bar height and row in the printed out put of the Gantt View do not appear to be adjustable. They seem to be of a fixed
    height. This is a real issue. Any workarounds? (Please note that the above code works for for on line ganttview but not the
    UltraGanttViewPrintDocument1.Ganttview

    Perhaps (i.e. Hopefully) there some setting in the UltraGanttViewPrintDocument1.Ganttview that I am missing.
    Otherwise I think this is a software issue

    Thank you in advance for your help
Reply Children