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

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

List View Sub Menu Item Command not invoking

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :WPF
<MenuItem Header="Flag(s)" ItemsSource="{Binding Path=LineItemFlags}" >
                                <Style TargetType="{x:Type MenuItem}">
                                    <Setter Property="Header" Value="{Binding FlagName}" />
                                    <Setter Property="ItemsSource" Value="{Binding LineItemFlags}"/>
                                    <Setter Property="Command" Value="{Binding AssignFollowupCommand}" />
                                    <Setter Property="CommandParameter" Value="{Binding RelativeSource={RelativeSource FindAncestor, 

View Complete Post

More Related Resource Links

Cannot access Workflow from List Item menu: "Value does not fall within the expected range."


We are using Sharepoint 2007 sp2.

I am using Sharepoint Designer 2007 to create workflow for some List, suddenly I cannot acess some list items' workflow,and was informed  "Value does not fall within the expected range." , but other items are all ok.

I don't know whether this is concerned with the service pack 2, I installed sp2 yesterday.

How to remove 'Delete Item' from context menu of a programmatically created list?

How to remove 'Delete Item' from context menu of a programmatically created list?
I have document library which is created programmatically but now I don't want to have 'Delete Item' in context menu of that document library. Are there any possibilites?

List Item menu button not lined up when scrolling

I have a custom master page and when I am viewing a list that requires me to scroll, the list item menu button doesn't display on the line I am currently hovering over. Instead it displays a few lines up, depending on how far I have scrolled. Any ideas on how to fix this?

Rotate List View Item

Hi Everyone,

I am trying to create a "Did You Know?" web part on my SharePoint homepage that randomly flips through a list of facts one at a time.  The facts are stored in a SharePoint List.  How can I accomplish this?

Thank You

Grid view: menu item of hyperlink to view attachment excel and pdf

Good day,

i am facing a problem to create a hyperlink to view the attachment pdf and excel in table from a menu item i created.

below is my coding, themnuItem.NavigateUrl is wrong, i hope anyone can help me. i attach the printscreen of my table and the menu item, however i fail to make the hyperlink from the view image to my attachment.

i had a css file to create the menu item



            Dim models_select As String = Cmn.ReplaceDBNull(Me.gridView1.DataKeys(e.Row.RowIndex).Values("MODEL_SELECT"), "")
            Dim mnuAction As Menu = CType(e.Row.FindControl("mnuAction"), Menu)
            Dim mnuRoot As MenuItem
            Dim mnuItem As MenuItem
            'Dim CCLID As String = Cmn.ReplaceDBNull(Me.gridView1.DataKeys(e.Row.RowIndex).Values("CCLID"), "")

            ' Insert root item
            mnuRoot = New MenuItem()
            mnuRoot.Text = models_select & " "
            mnuRoot.NavigateUrl = ""
            mnuRoot.Selectable = False

Append an Item to a SP List and NewForm dropdown menu


When Lookup Column on a NewForm.aspx, that was populated from another SP List, does not contain a value in the DropDown menu can it be added/inserted into the source SP List from the NewForm without leaving the NewForm? 

Is there code or example how to insert the Item in the SP List, then refresh/repopulate the Lookup Column's DropDown menu (in the NewForm)?

Or is there a better way to do this add an item both the List and the dropdown without resetting the values already entered in the NewForm?


List Item View Count - Blog Site



Is there any way we can find how many times the Article is viewed in a Blog Site.

In Blog Site there is a list called Posts and I have List Items like Article1,Article2, Article3........  Is there anyway i can display the Article View count on the Post.aspx page ? i want display on each article how many times the page is viewed.

Please let me know how to acheive this ..

Thanks in Advance


Data view web part and item menu


Good morning, I'm using the SharePoint Designer 2007 and I would like to show the item menu using the data view web part. Below is an example of what I want to do:

How can I do that?

Hide public view of list on left menu - no SD - Sharepoint 2003


Hi folks,

I'm working in a crippled sharepoint environment - basically our multinational company has given us a Sharepoint with a Teamsite template and no tools to get the best out of it.

I have created a site with a list containing 3 public views. 2 of these views are for the "the workers" to input and view data. The 3rd view has all items, and is for management information for a select number of users. These users do not use the view directly, it is picked up by an Excel spreadsheet.

The 3rd view in it's completeness is sensitive information, and we would like to remove the view from the views menu on the left hand side. I suspect that this may be possible using javascript code, in a CEWP. I am making this assumption because this article seems to be doing something similar:


I am not familiar with javascript or the objects referred to, although I have used javascript previously to amend column widths in a view. 

Any suggestions?




How to hide/remove "Alert Me" action menu item from Custom List/Document Library?


Hi All,


I am using Sharepoint 2007 (MOSS).

I want to hide/remove "Alert Me" action menu item from Custom List/Document Library for my Sharepoint site.


any help will be appreciated.



Dynamic Sub Menu Item Command Not working in WPF...MVVM

<MenuItem Header="Flag(s)" ItemsSource="{Binding Path=LineItemFlags}" >
                                <Style TargetType="{x:Type MenuItem}">

View for a single list item?


I have a SharePoint 2010 list that manages work orders, but I can't find a way to create a view that shows only one record in a receipt-like format.  I have seen that there is the capability to use XSLT to create custom views, but I can't see where I would upload/edit this in SharePoint Designer (I have Visual Studio, but haven't started using it yet for SharePoint development)

Here is an example of what I want to do...

Fields in the List:

Date | Customer Name | Description | Quote

I'd like to print out a receipt that looks like this:

Date: 10/15/2010
Customer Name: Joe Smith
Description: Level 1 Tune-Up
Quote: $200

I'm assuming that a View (which can be printed) would be the easiest way to do this, and that a custom Web Part would be the best but also a lot more work.

Removing forms from the List Item Menu with SharePoint Designer

In SharePoint Designer 2010, if one removes one of the default forms (say "EditForm.aspx"), how does he also remove the "Edit" option from the List Item Menu? The default forms are not represented in the "Custom Actions" pane when looking at the form settings page in SharePoint Designer.  The background is that we have created a custom form that is really add, edit and view combined into one.  We need to eliminate two of the pages and only link to the one that is left.
Rob Wilson - MCT. MCTS, MCITP, MCPD SharePoint. http://sharepointblog.kellerschroeder.com http://www.therobman.com/blog

Change "linked to item with edit menu" in a list.

In a custom list imported from spreadsheet can you change the "linked to item with edit menu" to another column othe rthan the defaut?

How to keep the hover for Parent menu and set the selected menu item css for child menu item?



I'm using cssfriendly control adapter for menu. My asp.net menu control's datasource is a sitemap file I'm using which contains all the urls.

I have the following questions:

  1. Is there a way to keep the parent menu item hovered while hovering over the respective child menu items?
  2. Is there a way to keep the child menu item selected? I am able to set the css for the parent menu, however I was wondering if the same is possible with the child items.

Please help! Smile


Moneka Smile

ASP.NET 4.0 Menu Top Level selected item style


I want to apply a css class to the level 1 menu item (parent) when it or any or it's children are selected.

I've looked at MSDN documentation and any number of examples and walkthroughs but I haven't come up with a way of managing this. I was thinking something like this might work but the style is not being applied to the parent. To further complicate matters, if I try to apply a css style to StaticSelectedStyle it doesn't pick it up at all.

Menu Markup:

<StaticSelectedStyle  Font-Bold="True" ForeColor="#3333CC" />

Code Behind:

        protected void MenuItemClick_NavMenu(Object sender, MenuEventArgs e)


            MenuItem parentItem = e.Item.Parent;

            if (parentItem != null)


                parentItem.Selected = true;



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