cancel
Showing results for 
Search instead for 
Did you mean: 

How to add tooltip in table column

Former Member
0 Kudos

Hi

I want to display tooltip message when I put my mouse in a table row by programatically.

Thanks

Lohi.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Lohita,

Why not just to set tooltip on UI controls you are using as cell editors and/or on column header.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi Silaev,

Thanks for your immediate response.

It has some problem in setting in UI Controls.

I want to add that tooltip by using code because I need to check some condtion based on column value.

Please suggest me.

Thanks,

Lohi.

Former Member
0 Kudos

Hi

Create an attribute with type String and bind it to the tooltip property.

You can change it at runtime according to the condition

Kind Regards

Mukesh

Former Member
0 Kudos

Lohita,

Then bind tooltip to context attribute of the same node. Or 1..1 non-singleton node (if original one is model node).

You may either set tooltip values when populating node, or create read-only calclualted attribute and write in generated getter something like:


public String getMyNodeMyTooltip(IPrivate<ControllerName>.IMyNodeElement element) {
//@@begin
  if ( element.getPrice() > 10000 ) return "High";
  if ( element.getPrice() < 100) return "Low";
  return null;
//@end
}

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

[/code]