Hi,
is there the possibility to display the filter icon permanently or to implement an own tooltip for the header area ?
Thanks
sflgrid header
-
- Profound User
- Posts: 24
- Joined: Thu Jul 24, 2014 6:52 am
- First Name: Thomas
- Last Name: Pataki
- Company Name: Televis GmbH
- Address 1: Hainburger Straße 33
- City: Wien
- Zip / Postal Code: 1030
- Country: Austria
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: sflgrid header
You could overlay the header with a label, and put a tooltip on the label. Would that work?
A more complex solution... you can put HTML in your column headings. So with thata, you could easily put a tooltip, icon, javascript, etc
A more complex solution... you can put HTML in your column headings. So with thata, you could easily put a tooltip, icon, javascript, etc
-
- Profound User
- Posts: 24
- Joined: Thu Jul 24, 2014 6:52 am
- First Name: Thomas
- Last Name: Pataki
- Company Name: Televis GmbH
- Address 1: Hainburger Straße 33
- City: Wien
- Zip / Postal Code: 1030
- Country: Austria
- Contact:
Re: sflgrid header
which means HTML in the column headings ?
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: sflgrid header
You can insert HTML tags inside your column headings to do things. For example, you asked about a "tool tip" on your column headings... Internally, when you use the "tool tip" property in PUI, it puts an HTML 'title' attribute on the HTML tag when it builds the widget, which causes the browser to display a tool tip when you mouse over the widget.
In this example, I want it to say "My Tool Tip Data" when you mouse over the 2nd column of a grid, like this:
To do that, I can edit the column headings property of my grid. Column headings is a comma separated list of headings. PUI will split this list by the commas, and insert each piece into the page. So if you have HTML tags in between the commas, they will be interpreted by the browser. If you want to hard code the tool tip in the display file settings, you can right-click the "column headings" and choose "open in editor"
In the editor, enter the HTML tag for <span> (span is a division of HTML data that all fits in one paragraph/element/line) with a title attribute like this:
Or, if the tool tip data will vary, you can bind the "column headings" property to an RPG variable, and build the same comma-separated list from data in your RPG program. The bound field should be character, and large enough to fit all of the column headings separated by commas, plus the HTML code.
Then you can build the same comma-separated list in your RPG program, and if desired, calculate the field values on-the-fly. (Or load them from databases, etc.)
In this example, I want it to say "My Tool Tip Data" when you mouse over the 2nd column of a grid, like this:
To do that, I can edit the column headings property of my grid. Column headings is a comma separated list of headings. PUI will split this list by the commas, and insert each piece into the page. So if you have HTML tags in between the commas, they will be interpreted by the browser. If you want to hard code the tool tip in the display file settings, you can right-click the "column headings" and choose "open in editor"
In the editor, enter the HTML tag for <span> (span is a division of HTML data that all fits in one paragraph/element/line) with a title attribute like this:
Or, if the tool tip data will vary, you can bind the "column headings" property to an RPG variable, and build the same comma-separated list from data in your RPG program. The bound field should be character, and large enough to fit all of the column headings separated by commas, plus the HTML code.
Then you can build the same comma-separated list in your RPG program, and if desired, calculate the field values on-the-fly. (Or load them from databases, etc.)
-
- Profound User
- Posts: 24
- Joined: Thu Jul 24, 2014 6:52 am
- First Name: Thomas
- Last Name: Pataki
- Company Name: Televis GmbH
- Address 1: Hainburger Straße 33
- City: Wien
- Zip / Postal Code: 1030
- Country: Austria
- Contact:
Re: sflgrid header
Hi, Scott,
That's a great thing.
Thanks for your help.
That's a great thing.
Thanks for your help.
Who is online
Users browsing this forum: No registered users and 2 guests