• 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 supermht, Today, 07:59 PM
    0 responses
    2 views
    0 likes
    Last Post supermht  
    Started by mohdhm, Today, 05:13 PM
    1 response
    12 views
    0 likes
    Last Post nkhoi
    by nkhoi
     
    Started by 3lliot, Today, 05:55 PM
    0 responses
    2 views
    0 likes
    Last Post 3lliot
    by 3lliot
     
    Started by Fargo, Today, 04:57 PM
    0 responses
    11 views
    0 likes
    Last Post Fargo
    by Fargo
     
    Started by Johnny Santiago, Today, 03:57 PM
    0 responses
    10 views
    0 likes
    Last Post Johnny Santiago  
    Working...
    X