hide/remove group header
Hi,I have modified the view with grouping by division. Now i want to remove group heading 'division' just directly want to display division name, how can i do this? please suggest.Regards,Deependra
March 11th, 2009 11:57am

Hi Deependra,You can open de view orpage where the webpart is on in SharePoint Designer and convert the listview webpart to a xslt Data View Webpart. Then you can select the group heading and remove it.Another way is to create your own list template and edit the listviews in your list definitions.If You want more information on how to do it, let me know.Renee
Free Windows Admin Tool Kit Click here and download it now
March 11th, 2009 4:50pm

Hi,You don't have to change the listview into xslt dataview. If you remove this part from the list view<GetVar Name="GroupByField" HTMLEncode="TRUE"/><HTML><![CDATA[</a> : ]]></HTML>the groupheading will be removed, it is part of the ListViewXml.If you edit it on a (view)page in a site opened in SharePoint Designer it will only do that for that view on that list. The page becomes customized.Good luck,Renee
March 11th, 2009 5:13pm

Thanks Renee, Can the group heading be removed for whole the site? which file do i need to edit? Best regards, Deependra
Free Windows Admin Tool Kit Click here and download it now
March 11th, 2009 6:17pm

We are had a such requirement, After going throught big round, finally We used, Content Query web part and Group by Division which would not shown Division as Group Header.(Make sure that your Division Column defined as a Site Level will column) First time, I use SharePoint Designer to Edit the List View WebPart and remove group header value from back end Code. Since you are editing the code the List Name value was hardcoded.Due to this you may not able to re-use this WebPart for other SharePoint views.K.Mohamed Faizal, Solution Architect, Singapore http://faizal-comeacross.blogspot.com/
March 11th, 2009 6:52pm

HmmmmmmI think it is not very easy to do without customizing files that are not 'allowed to be modified'. It is not recommended and supported by Microsoft to edit the standard SharePoint Files. Creating your own whole new lists definitions isa bit to much asked I think.If you want to edit the list definitions:The listdefinitions are features in the feature folder. For example the custom listschema is in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\CustomList\CustListYou can find thispart of xml for every definedview in the schema.xml <GetVar Name="GroupByField" HTMLEncode="TRUE" /><HTML><![CDATA[</a> :&nbsp;]]></HTML>I thinkthis is notthe road you want to go..... I just want to point you to where the code is that creates the groupby heading.Maybe not the answer you wanted, but a bit more information to get to a solution, somebody else a suggestion???Good luck,Renee
Free Windows Admin Tool Kit Click here and download it now
March 11th, 2009 7:17pm

Thanks Renee,One more issue - i changed schema.xml but whenever i change the view, the division reappears. i am missing one step, applying changes from schema to the system, how do i do this?Regards,Deependra
March 12th, 2009 8:53am

I think you have to uninstall and install the list features.stsadm -o uninstallfeature -name <featurefoldername> -forcestsadm -o installfeature -name <featurefoldername>I am not sure if it is applied to all existing views, but it is for new created views.Renee
Free Windows Admin Tool Kit Click here and download it now
March 12th, 2009 9:47am

it gives me 'the given path's format is not supported'
March 12th, 2009 12:01pm

You are proberbly making a mistake with the uninstall and/or install syntaxfor examplestsadm -o uninstallfeature -nameTasksList -forcestsadm -o installfeature -nameTasksList^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Renee Hulsman - e-office / netherlands - rhulsman.blogspotcom
Free Windows Admin Tool Kit Click here and download it now
March 12th, 2009 1:01pm

Dear Renee,When i use uninstal/installfeature it says wrong file name - feature definition file must be named feature.xml.then i used the following to activate feature:STSADM.exe -o activatefeature -filename "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\CustomList\CustList\schema.xml" -forcethen i get'the given path's format is not supported'is there anything i missed?Deependra
March 12th, 2009 1:48pm

If it is een existing installed list that has changed:Use -name instead of -filename and it is the name of the feature folder in your exampleCustomList will do. stsadm -o uninstallfeature -name<featurename> -forcestsadm -o installfeature -name<featurename> If you install a new list:place your feature in the feature folderstsadm-o installfeature -name<featurename>stsadm -o activatefeature -name<featurename> -url "http://yoursite" Renee Hulsman - e-office / the netherlands - rhulsman.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
March 12th, 2009 2:29pm

thanks Renee,it says 'Failed to find XML file at the location "12/templates/features/feature.xml"' when i tried to anything install, uninstall or activatefearure.Regards,Deependra-- Deependra
March 13th, 2009 9:38am

On my clean MOSS installation this will do the job:stsadm -o uninstallfeature -nameCustomList -forcestsadm -o installfeature -nameCustomListWhat is the exact error when you try this? Renee Hulsman - e-office / the netherlands - rhulsman.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
March 13th, 2009 10:29am

stsadm -o uninstallfeature -nameCustomList -force for this it says 'Required tag 'Feature' is missing from feature definition' do i have to copy schema.xml somewhere?Regards,Deependra-- Deependra
March 13th, 2009 10:38am

Sorry for troubling you so much...do i have to update feature.xml in CustomList folder and mention CustList/schema.xml?Deependra-- Deependra
Free Windows Admin Tool Kit Click here and download it now
March 13th, 2009 10:55am

I think you messed up the feature.xmlWhat steps did you take?The only thing that you had to dowhere the following two steps- edit the schema.xml of the customlist.Basiccly remove two times thisline of code and save it<GetVar Name="GroupByField" HTMLEncode="TRUE" /><HTML><![CDATA[</a> :&nbsp;]]></HTML>- uninstall and install the featurestsadm -o uninstallfeature -nameCustomList -forcestsadm -o installfeature -nameCustomListI did the first step for you and zipped the feature you can get itherereplace the one you have with this one and install and uninstall the featuregood luck Renee Hulsman - e-office / the netherlands - rhulsman.blogspot.com
March 13th, 2009 11:25am

Thanks!done, no error.But the division is still there for newly created view.Deependra -- Deependra
Free Windows Admin Tool Kit Click here and download it now
March 13th, 2009 12:53pm

Hello Renee, anyway to find out what went wrong? Regards, Deependra-- Deependra
March 13th, 2009 3:58pm

Hi,Try iis resetdoes it work on a new list and a new view?Renee Hulsman - e-office / the netherlands - rhulsman.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
March 13th, 2009 4:26pm

hmm, i will let you know on Monday...have a nice weekend!!Deependra-- Deependra
March 14th, 2009 4:05am

Hello Renee,sorry but it did not work. what might have went wrong?Regards,Deependra-- Deependra
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2009 7:19am

Make sure that your list is created from the right list definition (Custom List ?) can youtry a new list and view.Renee Hulsman - e-office / the netherlands - rhulsman.blogspot.com
March 16th, 2009 9:08am

Done Renee, it was document library... thanks so much for all the troubles you have taken...Deependra-- Deependra
Free Windows Admin Tool Kit Click here and download it now
March 16th, 2009 11:24am

AllItems.aspx is based on which template? This is the only view that is not affected with...-- Deependra
March 16th, 2009 4:19pm

Hey Deependra I have similar issue did u find any solution?
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2011 1:12pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics