• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NTGrid column header tooltip shows Label value instead of Tooltip value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NTGrid column header tooltip shows Label value instead of Tooltip value

    Hi.

    We are using NTGrid and want to display shorter column names and have tooltips show the full ones.
    So we setup the columns like this with Label setting the column name and ToolTip for the tooltip:
    Code:
    Style _TextFormatting = new Style(typeof(XamTextEditor));
    TextField _TF = new TextField()
     {
    Name = "ID",
    Label = "ID",
    ToolTip = "This is a tooltip",
    Width = new FieldLength(50, FieldLengthUnitType.Pixel),
    EditorStyle = _TextFormatting
     };
    Grid.FieldLayouts[0].Fields.Add(_TF);
    Above code will add a column named ID, and when you hover over ID column header expected to see "This is a tooltip" but get "ID" instead. (attached cropped screenshot)

    Which property should we set to get a custom tooltip?

    Thanks.
    Attached Files

    #2
    Found a solution using templates and _TF.Settings.LabelPresenterStyle.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by saturntd, Today, 06:14 PM
    0 responses
    1 view
    0 likes
    Last Post saturntd  
    Started by derslyr1, Today, 04:48 PM
    0 responses
    2 views
    0 likes
    Last Post derslyr1  
    Started by patpat, Today, 04:25 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Mykro, Today, 02:01 PM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Started by Thomas79, Today, 02:15 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X