Tag Info

Hot answers tagged

4

Don't know really HOW, but this code works! Take a look =) public partial class VisualWebPart1UserControl : UserControl { private Microsoft.SharePoint.WebPartPages.ListViewWebPart myListView; protected override void CreateChildControls() { base.CreateChildControls(); SPSite oSiteCollection = SPContext.Current.Site; ...


3

The only out-of-box WebPart that supports audience filtering by content item is the Content Query Web Part. It is part of the Publishing Infrastructure Site Collection feature and requires SharePoint Server edition (not included with Foundation). Add a CQWP to your page, wire it up to your linked list, and then click the checkbox to enable Audience ...


3

Thanks Robert! I am banging my head on the wall for this! Basically you don't have to add a code just to show the ribbon by default. Just go navigation and tick NO to show or hide command ribbons. According to the error that i got below, it is referencing to a script outside our domain. Webpage error details Message: Script error Line: 0 Char: 0 Code: ...


3

You can do this by editing xslt in spd, namely you should change <xsl:value-of select> tag and add the surrounding <a> <a href="http://vxmc2170345/Lists/facilty/DispForm.aspx?ID={substring-after($thisNode/@IDofListX., '#')}"> <xsl:value-of select="substring-after($thisNode/@IDofListX. , '#')"/> </a> more detail: ...


2

In brief, just don't use XsltListWebPart on Application Pages. And here are some summarized explanations: XsltListViewWebPart and other OOTB SharePoint webparts (especially complex ones), apparently just aren't supposed to work in Application Pages environment. In other words, they weren't tested there and thus their operability is not guaranteed. This ...


2

Just manage to find the answer as follows: Select the list view web part and modify it and remove the 'Title URL' under the 'Advanced' section will do. Reference: http://intl.feedfury.com/content/16270498-how-to-remove-the-web-part-title-bar-link.html


2

Ok I resorted to a jQuery solution as I can get my head around it easier than anything SharePoint throws at me! As all lists have the class ms-summarycustombody I was able to get the following to convert the table to ul var div = $("<div id='viewport' class='viewport'></div>"); var list = $("<ul id='announcementList'></ul>"); var ...


1

Ok this was a little confusing, but it sounds like you have a status field that each of the pages are based on. You can use this status for a conditional statement in the 'Form Load' section that will pull up the form associated with the current status. You will need to create the multiple views, and then on each view you may want to add buttons to switch ...


1

I've seen this problem before, on a Document Set homepage. The problem is that each webpart renders its own context object in DOM of the page, to be used in various javascript functions like sorting, paging, and also setting the ribbon. Despite extensive investigation the best answer I can give you is that you need to decide which of the webparts is most ...


1

so, I resolved it with my colleague help, on create child controls I do following. Take schema xml from the view, overwrite query and pass it to list view. No new view is created and everything works. var obtainedList = elevatedWeb.GetListFromWebPartPageUrl(FullUrl); if (obtainedList == null) { throw new ...


1

If you know the title of your list you could try something like this (here from Feature Event Receiver): var web = properties.Feature.Parent as SPWeb; if (web == null) return; var list = web.Lists["MyList"]; var manager = web.GetLimitedWebPartManager("MyPage.aspx", PersonalizationScope.Shared); var xsltListViewWebPart = new XsltListViewWebPart { ListId = ...


1

First, I think Andrey hit the nail on the head. In addition, you could try to use the ListViewByQuery control on an application page if you are looking for a simple tabular layout of data (i.e. a list). Microsoft does this in the OOB workflow status page (i.e. _layouts/wrkstat.aspx) for display of tasks. I've not tried it with ECB menus and such, but ...


1

I know it's a bit easy to point you to a website, but I really think this is what you are looking for: Changing the toolpart of a ListViewWebPart... http://www.tonstegeman.com/Blog/Lists/Posts/Post.aspx?List=70640fe5-28d9-464f-b1c9-91e07c8f7e47&ID=90


1

You should be able to do this using SharePoint Designer and the Data View Web Part. You might not even need jQuery. Check out Laura Rogers' blog - she has some very excellent step-by-step screencasts. http://sharepoint911.com/blogs/laura/Pages/Data%20View%20Web%20Part%20Screencasts.aspx


1

you can find the ListViewWebPart by code and set the HtmlSchemaView property by reflect. here is a open-source project : http://camlquery.codeplex.com/ you can find how to set the query condition of ListViewWebPart dynamically.


1

I think you are using webpart connections. If so, You cannot do this. A webpart can only be connected to another webpart through one connection type and Each connection can have only one connection type. So, you cannot establish two connections between same instance of Provider and Consumer webpart. However, You can connect a provider web part with two ...


1

Maybe this link from stack overflow site can help you to create multiple filter webpart OR You can passing two or more filter parameter by using query string web part. This link will give you tutorial how to use query string webpart to filter list item. You can use custom control to add query string to your site url. Hope it solve your problem.


1

For the list view form, deleting and recreating the views worked for me: private static void RebuildView(SPList list, SPView view) { list.Views.Delete(view.ID); list.Update(); string title = view.Title; SPView cloneView = view.Clone( title.Replace(" ", string.Empty), view.RowLimit, view.Paged, ...


1

If you edited the summary view on the list itself, after you created the list view, you need to go back into the listview web part, re-select the summary view, and then apply it. Views on lists and listview webparts are not synced, they can be changed and edited nonindependent of each other. The column you added, should display under the body column (if ...


1

The easiest way is to build the View you want into your list definition. Then in your ListViewWebPart refer it to that view. In CAML, this will be something like: <View List="Lists/Tasks" BaseViewID="7" WebPartZoneID="Left" WebPartOrder="5" /> BaseViewID is the identifier for the View in your List Definition. However, you might want to do this ...



Only top voted, non community-wiki answers of a minimum length are eligible