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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...