| View previous topic :: View next topic |
| Author |
Message |
gjm Guest
|
Posted: Tue Dec 19, 2006 3:48 pm Post subject: Contents of grid cell larger than available width |
|
|
(I'm currently evaluating version 3.23 because that's what was available when I started work; perhaps things are different in 3.4?)
Suppose some grid cell contains more data than can be displayed in the width available. So far as I can currently tell, the only way to see it all is to edit the cell, at which point you can move the editing cursor around.
It would be very nice if (1) the columns were resizable and/or (2) hovering over a grid cell popped up a tooltip containing the full contents of the cell. Am I right in thinking that neither of these is possible? |
|
| Back to top |
|
 |
JC
Joined: 14 Oct 2006 Posts: 101
|
Posted: Tue Dec 19, 2006 5:29 pm Post subject: |
|
|
Columns are resizable in 3.23.
Tooltips would be great... See this previous thread on the subject: http://forums.ebusiness-apps.com/viewtopic.php?t=1697
Thanks,
JC |
|
| Back to top |
|
 |
gjm Guest
|
Posted: Wed Dec 20, 2006 7:30 pm Post subject: |
|
|
| Ah. They're resizable ... but only when using Internet Explorer. (More precisely: not on Firefox. I haven't tested on anything other than IE and Firefox so far.) That's a bit sad. If there are any Nitobi folks listening, it would be nice if this worked cross-platform. |
|
| Back to top |
|
 |
JC
Joined: 14 Oct 2006 Posts: 101
|
Posted: Wed Dec 20, 2006 8:20 pm Post subject: |
|
|
I can resize the columns in Firefox 2.0. It's a bit tricky as you have to get the cursor position just right, but it's doable :)
Thanks,
JC |
|
| Back to top |
|
 |
gjm Guest
|
Posted: Thu Dec 21, 2006 10:11 am Post subject: |
|
|
| I don't seem to be able to, and I'm using Firefox 2.0 as well. Perhaps I'm making some wrong assumptions here. What exactly should I be doing? I've been assuming: left-click in header bar thingy, as exactly as possible on the boundary between two columns; hold the left button down and drag left or right. I can't find any position to click where that works, so maybe I'm all confused. |
|
| Back to top |
|
 |
mike_nitobi
Joined: 30 Oct 2006 Posts: 321
|
Posted: Sat Dec 23, 2006 1:26 am Post subject: |
|
|
I'd love to see tooltips too. :)
Anyways, column resizing does indeed work in Firefox, as JC already pointed out. Between columns, there's a divider indicator (looks like | ) and if you mouse over it, the cursor will look like one of these <-> after which you'll be able to resize.
This isn't meant to be facetious (apologies if it seems that way). As you said, maybe there are some incorrect assumptions being made so its best we clear those up immediately. |
|
| Back to top |
|
 |
gjm Guest
|
Posted: Tue Jan 02, 2007 12:53 pm Post subject: |
|
|
No, it doesn't seem facetious. Just strange since for me, mousing over the | dividers does *not* make my cursor change and no amount of clicking and dragging on or near them makes the columns resize. Honestly.
Looks like a bug somewhere. Any suggestions for tracking it down? (If anyone else is reading this who uses the Nitobi grid and Firefox: do you have the same problem?)
If I haven't misunderstood the other thread "JC" pointed at, tooltips were present in an older version of the grid. If they aren't in the present version, should I assume that adding them would be difficult even with the unobfuscated source? Not having them and not being able to provide them would be quite a major issue for our application. |
|
| Back to top |
|
 |
gjm
Joined: 26 Feb 2007 Posts: 13
|
Posted: Wed Feb 28, 2007 4:04 pm Post subject: |
|
|
| Aha, got it. I hadn't been aware that the grid won't work right when the browser is in standards mode. In Firefox (at least for me) forcing quirks mode by omitting the doctype doesn't make any substantial difference to the appearance of the table, but it does stop column resizing working correctly. (In IE7, forcing quirks mode makes the difference between a table that appears just as it should, and one that's totally garbled; it's testing with IE7 that provoked me to investigate more...) |
|
| Back to top |
|
 |
gjm
Joined: 26 Feb 2007 Posts: 13
|
Posted: Wed Feb 28, 2007 4:06 pm Post subject: |
|
|
| Oh, and one other thing. Tooltips would still be a Very Good Thing; is there any way to get those, or any likelihood that they'll be available in future versions of the grid? |
|
| Back to top |
|
 |
joe_nitobi
Joined: 19 Feb 2007 Posts: 301
|
Posted: Wed Feb 28, 2007 7:25 pm Post subject: |
|
|
| The issue of adding Tooltips to Grid has been recorded, and it may be added to a later version. Unfortunately, I am not able to give a timeframe as to when this may happen. We are also looking to fix DOCTYPE issues in a future release as well. |
|
| Back to top |
|
 |
dcwebman
Joined: 14 Nov 2006 Posts: 65
|
Posted: Wed Feb 28, 2007 7:27 pm Post subject: |
|
|
| gjm wrote: | | Aha, got it. I hadn't been aware that the grid won't work right when the browser is in standards mode. In Firefox (at least for me) forcing quirks mode by omitting the doctype doesn't make any substantial difference to the appearance of the table, but it does stop column resizing working correctly. (In IE7, forcing quirks mode makes the difference between a table that appears just as it should, and one that's totally garbled; it's testing with IE7 that provoked me to investigate more...) |
Can you please explain how I get Firefox in the correct mode? I took Nitobi's basic grid example and I can resize those columns. I used that as a template to another page but for some reason I lost the resizing ability. It must be something in the code but I'm lost. |
|
| Back to top |
|
 |
gjm
Joined: 26 Feb 2007 Posts: 13
|
Posted: Thu Mar 01, 2007 11:38 am Post subject: |
|
|
See http://www.quirksmode.org/css/quirksmode.html
and http://developer.mozilla.org/en/docs/Mozilla's_DOCTYPE_sniffing
for more gory details about Mozilla-based browsers such as Firefox.
Brief answer: if your web page doesn't have a <!DOCTYPE...> at the top, modern browsers will render it in "quirks mode", meaning that in some respects they prefer compatibility with older browsers over following the standards correctly. This is a necessary feature because there are such a lot of pages out there that were written for older browsers. And, it turns out, there are also some people writing modern Web 2.0 AJAX grids that depend on quirks mode too. :-) |
|
| Back to top |
|
 |
gjm
Joined: 26 Feb 2007 Posts: 13
|
Posted: Thu Mar 01, 2007 11:40 am Post subject: |
|
|
| (I forgot to say: Thanks for the update, Joe.) |
|
| Back to top |
|
 |
dcwebman
Joined: 14 Nov 2006 Posts: 65
|
Posted: Thu Mar 01, 2007 3:56 pm Post subject: |
|
|
| gjm wrote: | | Brief answer: if your web page doesn't have a <!DOCTYPE...> at the top, modern browsers will render it in "quirks mode", meaning that in some respects they prefer compatibility with older browsers over following the standards correctly. This is a necessary feature because there are such a lot of pages out there that were written for older browsers. And, it turns out, there are also some people writing modern Web 2.0 AJAX grids that depend on quirks mode too. :-) |
Thanks for the explanation. I see that the Basic grid sample doesn't have the doctype and it works but my code which is based off that page doesn't have the doctype either and it doesn't work. It must be something else so I'll try to figure out what the difference is. |
|
| Back to top |
|
 |
dcwebman
Joined: 14 Nov 2006 Posts: 65
|
Posted: Thu Mar 01, 2007 7:27 pm Post subject: |
|
|
I think I figured out why I'm not getting a resizer line in Firefox. Take the Basic grid example and simply add these lines in the appropriate place within the grid:
| Code: |
<ntb:columns>
<ntb:textcolumn label="Name" xdatafld="Name" width="150"></ntb:textcolumn>
<ntb:textcolumn label="FavColor" xdatafld="FavColor" width="100"></ntb:textcolumn>
<ntb:textcolumn label="FavAnimal" xdatafld="FavAnimal" width="100"></ntb:textcolumn>
</ntb:columns>
|
The resizer is gone in Firefox but still there in IE. Bug? |
|
| Back to top |
|
 |
|