• 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 Gerik, Today, 12:14 AM
    0 responses
    2 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by Bionian, Yesterday, 11:47 PM
    0 responses
    2 views
    0 likes
    Last Post Bionian
    by Bionian
     
    Started by adambrul, Yesterday, 11:34 PM
    0 responses
    1 view
    0 likes
    Last Post adambrul  
    Started by benjamind10, Yesterday, 07:27 PM
    0 responses
    4 views
    0 likes
    Last Post benjamind10  
    Started by YevhenShynkarenko, Yesterday, 06:07 PM
    0 responses
    5 views
    0 likes
    Last Post YevhenShynkarenko  
    Working...
    X