Page 1 of 1

Different table and rows for Tooltips

Posted: Thu Aug 06, 2015 5:51 pm
by eudosia

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


Re: Different table and rows for Tooltips

Posted: Thu Aug 06, 2015 6:19 pm
by Webmaster

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.