Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Footnotes
16/02/2009
09:27
Avatar
james_
Member
Members
Forum Posts: 27
Member Since:
16/02/2009
sp_UserOfflineSmall Offline

Hey!

First of all, thank you for jqGrid, it's excellent 🙂

I searched the forums for "footnote" but couldn't find anything. This might be either a feature request, discussion, help of whatever..

Bottom line is that I'd like to add footnotes to cells in my grid. Has anyone thought about this already? If nobody has solved it, do you have any suggestions? I could of course add another column to hold the footnotes, but it doesn't look too good and it wouldn't work exactly how I'd want either..

I hope someone takes time to share their view on this 🙂

17/02/2009
07:31
Avatar
james_
Member
Members
Forum Posts: 27
Member Since:
16/02/2009
sp_UserOfflineSmall Offline

Nobody has an opinion on this? 🙂

Guess I'll try to solve it using another column, and align them towards each other.. this will do, but brings me to another question:

Am I able to colspan the header but not the columns under it? Meaning I want a header "Location", with two columns under it, one with name and one with the footnotes..

18/02/2009
09:29
Avatar
Reg
Calgary, Canada
Member
Members
Forum Posts: 92
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

Hello James,

have you thought about using a Subgrid to display your footnotes? That way you could hide them but have them available for viewing when required.

HTH

Reg

19/02/2009
01:55
Avatar
james_
Member
Members
Forum Posts: 27
Member Since:
16/02/2009
sp_UserOfflineSmall Offline

Yeah, but I want them visible at all times. Nothing fancy needed though, and as long as I can add an event to clicking it, it doesn't have to be editable in the cell either... just display the foot note symbols lik "a,b" as superscript characters after the cell's actual content.

I guess I will have to try a workaround using another cell or something.. not quite sure about this one..

19/02/2009
07:23
Avatar
Reg
Calgary, Canada
Member
Members
Forum Posts: 92
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

How about putting the content you want in another column, something like a. Blah Blah Blah and then making that column wide enough to show only the a.; the rest becomes visible as a tooltip when the mouse is hovered over

Reg

19/02/2009
08:20
Avatar
james_
Member
Members
Forum Posts: 27
Member Since:
16/02/2009
sp_UserOfflineSmall Offline

Yeah, but you see I don't want the text up there, only the "a". The text itself will be below the grid, only the foot note symbol should be in the cell.

Example:
<table><tr><td>CellContent (a)</td></tr></table>
<p>(a): this cell's content should be taken with a grain of salt</p>

So what I want, is that when I click the cell, I want to edit the text "CellContent". When I click the "(a)" I can create an event to edit the foot note text if I'd want that. The foot note text is written in the paragraph below the table.

To be concrete, I'm creating a time table and there will be, e.g., "11:00" in such a cell. There are exceptions to this time (e.g., holiday), and that's what the footnote will show. It could say "but 11:30 on holidays"..

I agree that using two cells probably is the best option here. I'll most likely put "CellContent" and "(a)" in two different, and align CellContent right and (a) left, making them sit close 🙂 Then I'd prefer having only one header for them, though, which was another question I raised.

Thanks for your inputs, they help me get closer to a solution! 🙂

22/02/2009
09:47
Avatar
Reg
Calgary, Canada
Member
Members
Forum Posts: 92
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

would it work to wrap your footnote tag (a.) in a div and add the text as a title to it so it shows as a tooltip when hovered over? If you gave the div a class you could even change the font size and position to make it look like a normal footnote tag.

Reg

22/02/2009
13:55
Avatar
james_
Member
Members
Forum Posts: 27
Member Since:
16/02/2009
sp_UserOfflineSmall Offline

FYI I'm solving this using two spans in the cell, one for the content, and one for the footnotes. I have an beforeEditCell event dealing with this when editing. Using rightMouseUp to edit footnotes, writing to the other span.. this way I have two types of content in the same cell, editing one with left click, the other with right click (a dialog box where you can create new foot notes, reuse old ones etc).

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
56 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information