[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1930
  • Last Modified:

Sharepoint list view customization

I want to customize the sharepoint list view... Columns are next to each other but I want them to be underneath each other How do I achieve this??

<ViewFields>
                           
                              <FieldRef Name="Attachments"/>
                              <FieldRef Name="LinkTitle"/>
                              <FieldRef Name="NewColumn1"/>
</ViewFields>


there are two columns above they appear next to each other how can I make them underneath each other I used table added table rows and colums but when I saved it goes to original look like above I could not use table how can I achieve this?
0
fatihdi
Asked:
fatihdi
  • 2
1 Solution
 
MsShadowCommented:
No time to test it here, but can't you create a new calculated column that is

TEXT(col1) + "<br/>" + TEXT(col2)
0
 
MsShadowCommented:
If people are nice enough to answer your questions, the least you can do is to validate their answer.
0
 
fatihdiAuthor Commented:
<WebPartPages:XsltListViewWebPart runat="server" Description="" ListDisplayName="" PartOrder="2" Default="TRUE" HelpLink="" AllowRemove="True" IsVisible="True" AllowHide="True" UseSQLDataSourcePaging="True" ExportControlledProperties="False" IsIncludedFilter="" DataSourceID="" Title="Fatih" ViewFlag="25165829" NoDefaultStyle="" AllowConnect="True" DisplayName="All Documents" PageType="PAGE_DEFAULTVIEW" FrameState="Normal" PageSize="-1" PartImageLarge="" AsyncRefresh="False" Dir="Default" DetailLink="/Fatih" ShowWithSampleData="False" ListId="226ed5bd-7bef-447e-92aa-8d237e967645" ListName="{226ED5BD-7BEF-447E-92AA-8D237E967645}" FrameType="Default" PartImageSmall="" IsIncluded="True" SuppressWebPartChrome="False" AllowEdit="True" ViewGuid="{CFC4C107-4D68-4944-9EEC-717A2A35B13D}" AutoRefresh="False" AutoRefreshInterval="60" AllowMinimize="True" WebId="00000000-0000-0000-0000-000000000000" ViewContentTypeId="0x" InitialAsyncDataFetch="False" GhostedXslLink="main.xsl" MissingAssembly="Cannot import this Web Part." HelpMode="Modeless" ListUrl="" ID="g_cfc4c107_4d68_4944_9eec_717a2a35b13d" ConnectionID="00000000-0000-0000-0000-000000000000" AllowZoneChange="True" TitleUrl="/Fatih" ManualRefresh="False" __MarkupType="vsattributemarkup" __WebPartId="{CFC4C107-4D68-4944-9EEC-717A2A35B13D}" __AllowXSLTEditing="true" __designer:CustomXsl="fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><ParameterBindings>
                  <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
                  <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
                  <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
                  <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
                  <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
                  <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
                  <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
                  <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
                  <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noitemsinview_doclibrary)" />
                  <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noitemsinview_doclibrary_howto2)" />
            </ParameterBindings>
<XmlDefinition>
                  <View Name="{CFC4C107-4D68-4944-9EEC-717A2A35B13D}" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" Type="HTML" DisplayName="All Documents" Url="/Fatih/Forms/AllItems.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/dlicon.png">
                        <Query>
                              <OrderBy>
                                    <FieldRef Name="FileLeafRef"/>
                              </OrderBy>
                        </Query>
                        <ViewFields>
                              <FieldRef Name="DocIcon"/>
                              <FieldRef Name="LinkFilename"/>
                              <FieldRef Name="Modified"/>
                              <FieldRef Name="Editor"/>
                              <FieldRef Name="Edit"/>
                              <FieldRef Name="LinkFilenameNoMenu"/>
                        </ViewFields>
                        <RowLimit Paged="TRUE">30</RowLimit>
                               TEXT(col1) + "<br/>" + TEXT(col2)
                        <Aggregations Value="Off"/>
                        <ViewStyle ID="14"/>
                        <Toolbar Type="Standard"/>
                  </View>
            </XmlDefinition>
<DataFields>
</DataFields>
</WebPartPages:XsltListViewWebPart>
0
 
nsc_techCommented:
Where is that you are putting this code?
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now