Jump to content

How to put a hint on a TUniDBGrid column or maybe only on the title of the column


adragan

Recommended Posts

HI adragan. 

If I understand correctly, you can try Ext.tip.ToolTip 

 

fo all columns:

var tip = Ext.create('Ext.tip.ToolTip', {
    target: Ext.get(yourGridJSName.headerCt.id),
    html: '<b>H</b>int'
});

for a particular column:

var tip = Ext.create('Ext.tip.ToolTip', {    
    target: Ext.get(yourGridJSName.columnManager.columns[columnIndex].titleEl).id,
    html: '<b>H</b>int'
});

for example: yourGridJSName - O18,

                    columnIndex - 1

 

 

 

Try

 

Best regards...

 

Link to comment
Share on other sites

HI adragan. 

If I understand correctly, you can try Ext.tip.ToolTip 

 

fo all columns:

var tip = Ext.create('Ext.tip.ToolTip', {
    target: Ext.get(yourGridJSName.headerCt.id),
    html: '<b>H</b>int'
});

for a particular column:

var tip = Ext.create('Ext.tip.ToolTip', {    
    target: Ext.get(yourGridJSName.columnManager.columns[columnIndex].titleEl).id,
    html: '<b>H</b>int'
});

for example: yourGridJSName - O18,

                    columnIndex - 1

 

 

 

Try

 

Best regards...

 

 

Thanks !

Link to comment
Share on other sites

Hi, Delphi developer. Where do I have to set this code?

 

Hi Alberto vesx.

 

You can add to grid reconfigure:

function reconfigure(sender, store, columns, oldStore, the, eOpts){  
   var tip = Ext.create('Ext.tip.ToolTip', {
    //for all columns
    //target: sender.headerCt.id,             

    //for columns[1]
    target: Ext.get(columns[1].titleEl).id,
   
    html: '<b>T</b>est'
    });
}
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...