Stump the Panel Topic: dataview column header... line break? http://www.endusersharepoint.com/STP/ SharePoint QA en Sun, 01 Nov 2009 09:31:46 +0000 jaxkookie on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-9824 Fri, 04 Sep 2009 12:28:02 +0000 jaxkookie 9824@http://www.endusersharepoint.com/STP/ <p>This post may help.<br /> <a href="http://www.endusersharepoint.com/STP/topic/sharepoint-jquery-setting-view-column-width#post-8956" rel="nofollow">http://www.endusersharepoint.com/STP/topic/sharepoint-jquery-setting-view-column-width#post-8956</a></p> <p>and here is some css i was able to manipulate column headers with<br /> [style type="text/css"]<br /> .ms-viewheadertr td, .ms-viewheadertr a {<br /> writing-mode: tb-rl;<br /> filter:fliph flipv ;<br /> text-align:left;<br /> vertical-align:top;<br /> text-align:left;<br /> /*text-wrap:normal;<br /> LAYOUT-FLOW: vertical-ideographic;</p> <p>writing-mode: tb-rl;<br /> direction: ltr;<br /> filter:flipv fliph;<br /> word-wrap:normal;</p> <p>white-space:normal;<br /> white-space-collapse:collapse;<br /> */<br /> color: black !important;<br /> }<br /> [/style] </p> illegal operation on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-9734 Wed, 02 Sep 2009 09:48:25 +0000 illegal operation 9734@http://www.endusersharepoint.com/STP/ <p>Hi again,</p> <p>I had another question related to these type of column headers. How do you center them?</p> <p>I've tried centering the cell and it doesn't make any difference.<br /> I have one table header column that I want to center, and I just can't seem to get it to work. </p> illegal operation on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-7317 Wed, 03 Jun 2009 10:05:13 +0000 illegal operation 7317@http://www.endusersharepoint.com/STP/ <blockquote><p>An easier solution is to edit the cell properties of the table. Uncheck the "no wrap" option. Then you can click on the individual cell where the text is long and insert a break wherever you wish it to be. The header cell will then adjust the width and height to fit. </p></blockquote> <p>That was actually the first thing I tried, and it doesn't work. It will only allow you to adjust the cell to the width of the line of text, it won't go any smaller and the text won't wrap. Doesn't make sense, it should work. </p> SharePointKevin on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-7314 Wed, 03 Jun 2009 09:38:06 +0000 SharePointKevin 7314@http://www.endusersharepoint.com/STP/ <p>An easier solution is to edit the cell properties of the table. Uncheck the "no wrap" option. Then you can click on the individual cell where the text is long and insert a break wherever you wish it to be. The header cell will then adjust the width and height to fit. </p> jbhoward on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-7312 Wed, 03 Jun 2009 08:01:44 +0000 jbhoward 7312@http://www.endusersharepoint.com/STP/ <p>And here's another bit of information you can use regarding the label column on New- and EditForms:</p> <p><a href="http://sharepointsolutions.blogspot.com/2009/06/how-to-get-column-names-to-wrap-in.html">How to get column names to wrap in #SharePoint new item forms (NewForm.aspx)</a> by my friend, Kevin Pine, at SharePoint Solutions.</p> <p>Blessings,<br /> Jim Bob </p> jbhoward on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-7280 Tue, 02 Jun 2009 07:48:38 +0000 jbhoward 7280@http://www.endusersharepoint.com/STP/ <p>You're very welcome! </p> illegal operation on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-7260 Mon, 01 Jun 2009 16:27:56 +0000 illegal operation 7260@http://www.endusersharepoint.com/STP/ <p>thank you,<br /> I had been trying the <br /> in the field title, but I didn't know about the next step.</p> <p>Thank You! </p> jbhoward on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-7254 Mon, 01 Jun 2009 14:41:05 +0000 jbhoward 7254@http://www.endusersharepoint.com/STP/ <p>Sorry, my bad...</p> <p>Here's the fix for what you want to do:</p> <p>1. Within the <em>fieldtitle</em> parameter, put an HTML break (<code>&lt;br /&gt;</code>) where you want the text to wrap.</p> <blockquote><p><code>&lt;xsl:with-param name=&quot;fieldtitle&quot;&gt;Number&lt;br /&gt;Licenses&lt;br /&gt;Needed&lt;/xsl:with-param&gt;</code> </p></blockquote> <p>2. Search for <code>&lt;xsl:value-of select=&quot;$fieldtitle&quot; /&gt;</code> and change it to:</p> <blockquote><p><code>&lt;xsl:copy-of select=&quot;$fieldtitle&quot; /&gt;</code></p> <p><strong>Note:</strong> Leave alone the one inside the <code>&lt;xsl:when test=&quot;$fieldtype = &#39;Attachments&#39;&quot;&gt;</code>. Only change the one in the <code>&lt;xsl:otherwise&gt;</code>. </p></blockquote> <p>Save and test to make sure it looks the way you want it to.</p> <p>Blessings,<br /> Jim Bob </p> illegal operation on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-7245 Mon, 01 Jun 2009 13:16:30 +0000 illegal operation 7245@http://www.endusersharepoint.com/STP/ <p>I don't see those tags in the page, </p> <p>Here is one of my headers</p> <p>[code]<br /> &lt;TH nowrap="" scope="col" class="style4" style="padding; width: 64px;"&gt;<br /> &lt;xsl:call-template name="dvt.headerfield" ddwrt:atomic="1" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"&gt;<br /> &lt;xsl:with-param name="fieldname"&gt;@Number_x0020_Licenses_x0020_Need&lt;/xsl:with-param&gt;<br /> &lt;xsl:with-param name="fieldtitle"&gt;Number Licenses Needed&lt;/xsl:with-param&gt;<br /> &lt;xsl:with-param name="displayname"&gt;Number Licenses Needed&lt;/xsl:with-param&gt;<br /> &lt;xsl:with-param name="sortable"&gt;1&lt;/xsl:with-param&gt;<br /> &lt;xsl:with-param name="fieldtype"&gt;x:float&lt;/xsl:with-param&gt;<br /> &lt;/xsl:call-template&gt;<br /> &lt;/TH&gt;<br /> [/code]</p> <p>is this the right area? </p> jbhoward on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-7241 Mon, 01 Jun 2009 12:46:46 +0000 jbhoward 7241@http://www.endusersharepoint.com/STP/ <p>Sorry, just saw this.</p> <p>In SPD, remove the <code>&lt;nobr&gt;…&lt;/nobr&gt;</code> tags from around the header text and they will then break for you.</p> <p>Blessings,<br /> Jim Bob </p> illegal operation on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-7240 Mon, 01 Jun 2009 12:35:45 +0000 illegal operation 7240@http://www.endusersharepoint.com/STP/ <p>This has to be possible?<br /> I've seen some CSS methods posted in other places, but in SPD there has to be a way to do this manually without having to use CSS?</p> <p>right?</p> <p>I want to be able to adjust my column widths, but the headers are so long in SPD it won't allow me to make them any smaller? </p> illegal operation on "dataview column header... line break?" http://www.endusersharepoint.com/STP/topic/dataview-column-header-line-break#post-6803 Tue, 19 May 2009 11:22:04 +0000 illegal operation 6803@http://www.endusersharepoint.com/STP/ <p>Hi,<br /> I haven't seen this asked yet, but this seems like this would be a common question.</p> <p>On a dataview column header, if the header is multiple words, it pushes the column width out to make it all fit on 1 line. So the columns become way to wide for the data they contain.</p> <p>How can I make it so, the headers have a line break?</p> <p>So instead of</p> <p>column header 1</p> <p>it could be </p> <p>column<br /> header 1</p> <p>I tried turning word wrap off, and that didn't do it. I've tried just forcing the column width smaller, but it won't let me do that either. </p>