I would be much more usable to have a separate table for tooltips
I don't like to populate my working table with other columns only for a tooltip
It would be more comfortable to create a tooltip_table where you have 3 columns: id, table, column
so from the UI we can specify for the tooltip where to filter for the value.
Thanks
You
E
Different table and rows for Tooltips
-
- User
- Posts: 113
Different table and rows for Tooltips
-
- User
- Posts: 9427
You can use any field (e.g. the field itself) as Tooltip Field to enable tooltip for the field and use server event (e.g. Row_Rendered) to set your tooltip value from your own table, e.g.
$this->YourField->TooltipValue = ew_ExecuteScaler("SELECT tooltip
FROM tooltip_table
WHERE table
= 'YourTable' AND column
= 'YourField'"):
If you have many tooltip fields in the table, you can even get all the tooltip values for the table in, say, Page_Load events first so you don't need query database repeatedly.