.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

FlyoutAnchor with Menu and Check box button

Posted By:      Posted Date: October 26, 2010    Points: 0   Category :SharePoint


Is it possible to have a check box with Menusection of FLYOUTAnchor. I get error

"Message: The display mode with name: Menu is not valid for this control with id: Ribbon.MyTab.PathikGrp.StaticDropdown.Menu.MenuSection.CheckBox1"


Any idea?


Pathik Rawal Blog: http://pathikhrawal.wordpress.com

View Complete Post

More Related Resource Links

Check out button with only read rights

When a user has just read rights on a document library and he opens the document, he gets a checkout button at top. When he clicks it; the username and password is asked. He just can't login and he gets a "Cannot perform this operation. The file has been deleted or someone else has it checked out". Is there a solution to this problem? The user may not see the checkout button!!

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?

How can i check if button clicked inside a button click event?


private void View_Log_File_Click(object sender, EventArgs e)
                processNotePad = System.Diagnostics.Process.Start("notepad.exe", path_exe + @"\log\logger.txt");


It was easy to check it inside a checkbox event for example:


private void Show_satistics_CheckedChanged(object sender, EventArgs e)


             if (Show_satistics.Checked)
                     statform = new StatisticForm();

Customising the ribbon - Can't get my FlyoutAnchor menu to have controls over more than one column


Hi All,

I am a custom tab in the SharePoint 2010 ribbon. Everything is working correctly except that the controls in my FlyoutAnchor Menu are all in one column. I want them displayed in a similar fashion to the Page Layout button options. Can anyone point me in the correct direction?

Here's my code:

<Scaling Id="SharePoint.Ribbon.ContentTab.Scaling">

 <MaxSize Id="SharePoint.Ribbon.ContentTab.ContentGroup.Scaling.MaxSize" GroupId="SharePoint.Ribbon.ContentTab.ContentGroup" Size="

In UserControl, FooCmdCanExecute (context menu) not called until after a control button is clicked.


I'm seeing an odd behavior I can't explain.  I am using a 3rd party control, and while it's possible it's an issue with that control, I wanted to inquire here to see if anyone has experienced similar behavior in other instances (unrelated to my particular 3rd party control).

I created a UserControl, comprising a ComponentONE chart and several buttons.  When the UserControl is given a data source (for the chart), it programmatically creates a ContextMenu that allows the user to configure the Y view extent for each of the data series provided in the data source.  After it's created, it's set as the ContextMenu for the chart.  The UserControl is used inside a tab on the app's main window, and is also plunked directly inside another window that can be brought up.

The UserControl defines a RoutedCommand - let's say FooCmd.  When the MenuItems for the context menu are created, their Command properties are set to FooCmd.  Also, a CommandBinding in the UserControl associates FooCmdCanExecute() and FooCmdExecuted() in the control class with the command.

The buttons in the UserControl are for data navigation - e.g. , there's one that moves the chart's "viewport" to the beginning of the data, and one for the "end".  The click handlers are not complex - essentially, they just set

Is it possible to add a custom menu group to the Site Actions button?


I know I can use a Custom Action to add a new menu item to my Site Actions button .

Is it possible for me to add a new menu group to the Site Actions button? For example, like the OOB Site Settings menu group, which then extends out to offer additional items such as "Modify All Site Settings" etc.

problem in asp:menu font after clicking the button...


i've got this problem in asp:menu once i click a submit button the asp:menu font is change... also the drop menu got a space... how can i solve this problem any help???

im using c# .net

Conditional Formatting - Verify a number of check boxes have been checked before showing a button?


I would like to Hide a Submit button until all the check boxes are equal to true? How would I go about verifying all boxes equal true?

Locate new button in the site action menu


I added a new button to the site action menu, but the button was placed  at the end of the list.

Can I locate the button under the New page button.

Please advise




How to check if button is clicked in JQuery



How can i check if a button is clicked in a IF ELSE???


After logout is done check is made so that the browser back button does not retun to the last visite


Why this code not working.I want after logout is done check  the browser back button does not retun to the last visited page.

please help me.

 <script language = "javascript" type = "text/javascript">

         -- After LOGOUT is done,check is made so that the browser back button
         does not retun to the last visited page.
         -- The below function is called in OnClientClick of Login button
         function SetLogoutCookie(value) {
             var exdate = new Date();
             exdate.setDate(exdate.getDate() + 1);
             var expires = "; expires=" + exdate.toGMTString();
             document.cookie = "logout=" + value + expires + "; path=/";

Using a CompareValidator to check input is a valid date

The CompareValidator can do more than just compare two controls. You can also compare it against several of the main .net data types such as Date, Integer, Double and Currency.

To do this you would set Operator="DataTypeCheck" and instead of setting the ControlToCompare or ValueToCompare attributes as you normally would you use the Type="Date" (or any of the data types I have listed above).

Check All with JQuery and a Asp.Net GridView

Display a Grid on the screen with a checkbox in each row. At the bottom of the page have "Check All" button.

Typically if I need to do anything interesting I use a template column. So my GridView will look like the one below (most other columns removed for readability). The only interesting point to note is the CssClass="ApprovalCheckBox" in the CheckBox ItemTemplate.

ASP.NET Menu with jQuery Superfish

Choosing the right type of menu for a website is not easy at all. The ASP.NET Menu Control is definitely NOT a good starting point due to the horrendous markup it renders, nor is it good for SEO because of the Markup/Content ratio, neither can it be easily styled.

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Maintain HTML Radio Button Selection Inside GridView After Postback

Long time ago I wrote an article about getting the value of the selected RadioButtons inside the GridView control. The code did not addresssed the postback issue which means that the selected radio button was cleared after the postback occurs.

A Simple and Extensible Radio Button Style GridView

The GridView is one of the significant controls in ASP.NET 2.0 and later versions. No doubt it reduces a lot of work time. However, customizing the GridView control is not an easy task. For example, it's hard to add a radio button column to the GridView. This article demonstrates the reason why a radio button column cannot act as normal and how to create a simple and extensible radio button GridView.
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