.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Question about List Tools ribbon

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :SharePoint
Hi, is it possible to set by default to visible the "List Tools" upon the ribbon. When I go to Task list, the List Tools is visible by default but not with my custom lists.

View Complete Post

More Related Resource Links

C#, LINQ: (List<>) Question???


Hi Everyone,

I have a strange problem:


There is an entity (Table) called "Filters" in my .edmx which has all my tables and stuff in it (to use it for LINQ queries)

I have created a class called "CustomFilters" which inherits "Filters". So now my cutom class has all the properties of the original "Filters" class (table) and 1 more additional property that i wanted which is a List of "CustomFilters":

List<CustomFilters> children = new List<CustomFilters>();

Now i get all my records into:

List<CustomFilters> theOriginalList = new List<CustomFilters>();

NOTE: first all records are tken into a List<Filters> and then these are added into List<CustomFilters> where List<CustomFilters> for children of that record is added, and then children of the child records, and so on......

so now, every record is an instance of CustomFilters which has a property named "children" which is a list again; and each child again has instanaces of "CustomFilters", and each instance again has children...and on and on and on.....

(basiacally its a data source for a treeview in my silverlight control)

every thing is good and working as expected.


Cannot enable Ribbon Edit Tab buttons and "connect" them to a list item in my custom webpart

I have one list with some custom fields and I want to develop a custom page. So, I created an ASPX page and added my custom webpart. This webpart has just a RichTextField, in edit mode, "linked" to one item of the list, like below: SPSite _SPSite = SPContext.Current.Site; SPWeb _SPWebProjects = _SPSite.OpenWeb("/Projects"); SPList _SPListProject = _SPWebProjects.GetList("/Projects/Lists/Project"); int _ID = Convert.ToInt32(this.Page.Request.QueryString["ID"]); RichTextField _RTF = new RichTextField(); _RTF.ID = "RTF"; _RTF.ControlMode = SPControlMode.Edit; _RTF.FieldName = "History"; _RTF.ItemContext = SPContext.GetContext(HttpContext.Current, _ID, _SPListProject.ID, _SPListProject.ParentWeb); _RTF.RenderContext = SPContext.GetContext(HttpContext.Current, _ID, _SPListProject.ID, _SPListProject.ParentWeb); this.Controls.Add(_RTF);   Then, I "turned on" the edit tab on the ribbon by doing the follow: protected override void OnPreRender(EventArgs e) { SPRibbon _CurrentRibbon = SPRibbon.GetCurrent(this.Page); _CurrentRibbon.TrimById("Ribbon.WebPartPage"); _CurrentRibbon.MakeTabAvailable("Ribbon.ListForm.Edit", string.Empty); _CurrentRibbon.MakeContextualGroupInitiallyVisible("Ribbon.ListForm.Edit", string.Empty); _CurrentRibbon.Minimized = false; _CurrentRi

How to hide the list ribbon in XSLT List View Web Part?

Hi, In SharePoint 2010, I have a custom list "Clients" on a site. On the home page of the site, I have added a Clients List Web Part. When I access the home page in a browser and click anywhere in that list, it displays the "List Tool" ribbon group which has "Items" and "List" ribbons. I do NOT want these ribbons at all when clicking on the list. How do I achieve this? Should I disable the click event on the list so these ribbons do NOT appear? How do I disable the click event on the list? Or What should I do to hide these ribbons when clicking on the list? Basically I want it to behave same as content query web part. In content query web part, if you click anywhere in it, it doesn't show up any extra ribbons. I want the same behavior with list web part. Thanks, Hitesh

Button in Ribbon.ListItem.New doesn't appear when list is added via a webpart


I have added a button to a project task list (id = 150).
Everything works fine when I directly use the list. But when I add the list via a webpart to the site page my new button is not available. It's exactly the same ribbon as in the list view but my new button is not visible. Any suggestions?

  Title="Ribbon Customization for a Content Type">
    <CommandUIDefinition Location="Ribbon.ListItem.New.Controls._children">

Showing Ribbon on master page: The page you selected contains a list that does not exist.


I am performing a content database upgrade of a SharePoint 2007 site collection to SharePoint 2010. I used the mount-SPContentDatabase with the –UpdateUserExperience switch. I set the site to use the v4.master page as the master page. If the ribbon is not displayed on the page, the page renders. However when I show the ribbon I get the following error:


Server Error in '/' Application.


List does not exist.

The page you selected contains a list that does not exist. It may have been deleted by another user.<nativehr>0x81020026</nativehr><nativestack></nativestack>

List - easy question hopefully :)


Hi there,

Sorry in advance if this is the wrong place to post. Please redirect me if necessary.

I have a Generics list of my class objects - at any given time there could be a maximum range of 100 to 1000 objects in my generics list of objects. 

Let's say I have just 3 MyObject in my generics list. I want to do a .RemoveAt(0) because I no longer need it, and then maybe do a couple of .Add(MyObject) methods and then another .RemoveAt(0) method call. 

In other words, there will be constant .RemovingAt index zero and .Add method calls - the question is: I am worried about memory since the Generics list is in constant reindexing flux. Do I have anything to worry about given this scenario???

The MyObject is a very small class.


"Connect to Outlook" and "Open Schedule" disabled in Ribbon on instance of Project Tasks list


Hi Everyone,
I am creating a custom list template for "Project Tasks", essentially I need a customized version of the OOB Project Tasks list. I've cloned the OOB feature over to my Visual Studio 2010 solution and I am able to successfully deploy my version as expected, with everything fully functional, gantt chart and everything, except one thing. When I provision an instance of the list using the OOB list template, I am able to see everything in the Ribbon enabled. However, when I provision an instance of my custom list template (clone), I see the "Connect to Outlook" button disabled, as well as the "Open Schedule" button disabled - which allows you to open the task list with Microsoft Project (I have all Office 2010 clients installed, including Microsoft Project).

I am guessing there must be some type of setting somewhere that associates the OOB list template to those Ribbon items that I see as disabled. The only thing different between my list template and the OOB list template is the Type ID. Could this be the problem?

Where should I be looking to troubleshoot this issue?


Question about filter list of objects by interface



public interface ISearchable
      int Id{ get; set;}
      int LanguageId{ get; set;}


class Programmer : ISearchable

    public int Id
            return Id;
            Id = value;

    public int LanguageId
            return LanguageId;
             LanguageId = value;
} public class Teacher : ISearchable { public int Id { get

SharePoint team discussion list question



In my "Team discussion" list we ask user to select "Departments" from the drop down. Now, I'm creating view for each department so that they can only see their own discussions. But, When I add "Team discussion" list in a web part, I don't get my custom views in "Select View" drop down list. I'm getting only "Subject" view ,

You may refer my question here with screen shot  : http://stackoverflow.com/questions/4076312/sharepoint-team-discussion-list-question


Filtering foreign key drop down list question.


I have a question concerning the way dynamic data filters records in foreign key fields in edit mode.  Here is my application as an example:


I have a table called people which has a one to many relationship to a table called addresses (to keep historical address records) as well as a one-to-one foreign key relationship to determine which of those multiple addresses is the current active address.  Dynamic data displays the one-to-one as a drop down list in edit mode but the list is populated with every address in the table to choose from.  Is there a way to filter it so that the drop down list is populated with only the possible addresses that already belong to that person rather than every address in the table (including those that pertain to other people)?


MVC Linq Join List Question


This is the query I have

    Function Index() As ActionResult

            ViewBag.dateNow = DateTime.Now

            Dim result = (From newLocation In DataAccess.Locations Join
                         newState In DataAccess.States
                         On newLocation.state Equals newState.id
                         Select newLocation, newState)

            '   Return View(DataAccess.Locations.ToList)
            Return View(result.tolist)

        End Function

I am trying to populate the ToList View, but I can't figure out how to call a specific column since it is using a join...

Example:   @item.address

I was thinking it would be like   @item.newlocation.address

However, that is not working --- any advice?

Can I disable "Convert to XHTML" in the ribbon editing tools tab?


Is there a way to disable the "Convert to XHTML" button in the ribbon editing tools tab? 

This page only specifies how to disable source editing: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.richhtmlfield_members.aspx


Expression Builder or other tools question ?


I was trying to look for a tool that would allow me to view the MDX that is created when i try to build a view in Management Studio.  I know that Reporting services has one but it is limited based on how I can drag and drop.  Is there another tool that would be free I could use to build an MDX expression ?

Architecture Tools in VSTS 2010

Designing new functionality on existing applications can be daunting. There are always differences between the original design and the current implementation.

The new Architecture tools within Visual Studio Team System 2010 help you understand the application you have, design new functionality you need, and validate that your design and your implementation do not deviate.

ASP.NET 2.0 (III) Architecture and Tools

In this third article we'll take a look at the changes to the architecture of ASP.NET v2.0. In particular we'll look at the changes to the compilation and deployment model.

Ready made List Types provided by SharePoint

SharePoint provides some out of the box List Types. Some of the most used ready made list types that SharePoint provides currently are listed below:

Export SharePoint List to Excel Spreadsheet Programmatically using C#

In SharePoint applications, Custom Lists are used to store business data and Document Libraries to store the documents. But for data manupulation and analysis, Microsoft Excel provides very rich features as compared to SharePoint Lists. That's why people still loves to work on Microsoft Excel Sheets.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend