.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

SPCalendarView Navigation shows in Control Instead of Ribbon

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

When I use the SPCalendarView control in a custom visual webpart, the navigation for expand all, collapse all, Day, Week, and Month, all show up in the calendar control itself, like SP2007 without the ribbon.  Is there a way to change this behavior to make it assume these will be in the ribbon and not show up in the control.

Right now I am just hiding them via css.

When you look at the OOTB calendar view used in a library, it puts this stuff in the ribbon in SP2010.

View Complete Post

More Related Resource Links

Binding byte[] to image control in navigation application leaks

Hi there, I have a (minimal) navigation application with two pages. Page1 contains an image. Switching between pages is done via a buttonhandler in code behind, for instance, (this.NavigationService.Navigate(new Page2())) The image is loaded in code behind via: private void LoadImage() { string fileName = "./images/image.bmp"; if (!new FileInfo(fileName).Exists) throw new Exception("File name doesn't exist"); using (FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read)) { this.ImageData2 = new byte[fs.Length]; fs.Read(this.ImageData2, 0, System.Convert.ToInt32(fs.Length)); fs.Close(); } } ImageData2 is a byte[] property that sends a propertychange event on changing. ImageData2 is bound to an image in xaml: <Image Grid.Row="1" Source="{Binding Path=ImageData2, Mode=OneTime}"/> When we unload Page1 the following clean up code is executed private void Page_Unloaded(object sender, RoutedEventArgs e) { this.ImageData2 = null; GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); } Now, when I start changing pages, I expect the Page we leave to unload, so the GC removes the byte array. However, it doesn't. Am I missing something? Binding the image to a BitmapImage (ImageData1, as you might have guessed:-) ) doesn't leak.

Using MVVM with new Ribbon Control Library

Hi, As new ribbon for wpf http://www.microsoft.com/downloads/details.aspx?FamilyID=2BFC3187-74AA-4154-A670-76EF8BC2A0B4&displaylang=en is officially released, I am looking for a way to use new ribbon control library in my application respecting the MVVM pattern, I used ribbon 2007 repecting MVVM by extending the RibbonCommand with CanExecute and Exceute properties, but Microsoft has dumped RibbonCommand in new release. Any help on new Ribbon with MVVM is appreciated.

Catch Save Ribbon Event from code-behind for webpart control

Hi there, How can a custom web part catch the Save Ribbon event from code-behind? Thank you, —JoeJoe

Catch Save Ribbon Event from code-behind for webpart control

Hi there, How can a custom web part catch the Save Ribbon event from code-behind? Thank you, —JoeJoe

WPF Ribbon Control binding to a VM Ribbon reference

Hi, I have a scenario where I will initialize the Ribbon in XAML but its relatd Tab, group, buttons etc., needs to be coming from VM file , meaning there will be a public property of Ribbon which needs to be set back to the Ribbon that was initialized in XAML like ( I am using WPF provided Ribbon control only)  <r:Ribbon Height="135" VerticalAlignment="Top" Name="mainRibbon" ... > // Above XAML I need to set the RibbonControl which is a public property (having the tabs, gropping, buttons etc., // Since WPF ribbion doesn't have ItemsSource I am struggling to set this ... In the VM file private Ribbon _RibbonControl; public Ribbon RibbonControl { get {      CreateRibbon() //This functon will creates tabs, groups, buttons etc., & adds to _RibbonControl      return _RibbonControl; } } Any help here is greatly appreciated. Prakash.G

Custom Navigation control get access denied for visitor


Hi all,

I made a custom control for top navigation which iterate through all site within site collection.

But I get access denied error for user which is not an admin (has read access).

I try to use

            SPSite oSiteCollection = SPContext.Current.Site;

                using (SPSite oSite = new SPSite(oSiteCollection.Url))
                    SPWebCollection collWebsite = oSite.AllWebs;

                    //my code to render the custom control



but no luck.

I found that we can also using SPUserToken, I made it like bel

WPF Ribbon Control - Freezing


Downloaded the latest Ribbon Control Library from microsoft.


Created a new WPF Ribbon Application, and create a few simple buttons and tabs.


Problem:  When I navigate away from my Ribbon Window to another app (ie browser), when I come back the the Ribbon Application the Ribbon will sometimes be frozen.  I cannot click any buttons or switch tabs, only the application menu is still active.  I can fix it my maximizing the window oddly.  Is this a know problem?  How do I fix it?  I can provide a small sample app if needed. 

Please check into this Microsoft :).




<ribbon:RibbonWindow x:Class="Main"
    Width="1100" Height="900" Background="{DynamicResource WindowBackground}">

  <Grid x:Name="LayoutRoot">
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="*"/>

WPF- Back/Forward navigation UI not working when Html web files are displayed in Frame Control


I am integrating (web) html files in my WPF application using Frame (say Source=http://www.microsoft.com)

I set the JournalOwnership="OwnsJournal" and


The navigation UI is visible and disabled initially when the page loads up (which is fine), but when I click on links the Back/Forward button is not enabled.  Interestingly the context menu shows Back/Forward and I can navigate that way. Do you have pointers?


Thanks for your help.

Navigation journal shows UNTITLED for all entries


I have a WPF application that uses a frame and navigation window. Navigation occurs in the frame and loads several different pages, all of which have the Title property set. For some reason, the navigation journal just shows Untitled for all of the pages in history. I did recently upgrade to .net 4.0 (VS 2010) and I think this is when the issue occurred, because it was working in the past, but I am not positive.

I have tried using the Page.Title property, Page.WindowTitle property and even JournalEntry.Name property, all of which have the same effect - nothing.

If anyone is able to shed some light on my issue, I would greatly appreciate it.

Ribbon Control + Drag/Drop


I've done a fair amount of looking, but I have not found what I am looking for.

I would like a ribbon control that I drag from the ribbon to a canvas below. In addition, I would like a combobox resting just below the control that allows me to change the content available for drag.

Is there a control out there that does this or should I build my own? If I build my own, how should i go about doing this?


"This control is currently disabled..." Most Library-->Documents ribbon actions are greyed


This started when I just needed to delete a document, I noticed most of the actions on the ribbon for Library-->Documents were greyed out.  The only thing that is not greyed is Upload document.  I have tried with multiple administrator accounts, installed office client on the server, I have tried from multiple clients and get the same thing.  Windows 7 and Office 2010 are on the clients I have tried.

Is it possible I may have missed an explicit permission that even an administrator account (domain admin + SP site collaction/farm admin) does not have?

How to use Navigation Hierarchy control with ListView Webpart on a custom web page?



Here is what i am trying to do with managed metadata and lists.

List name: MyList, it will have 2 managed metadata columns 'Business process' and 'Management model'. I have enabled metadata navigation settings for this list on mentioned columns

I will have a data view webpart mapped with MyList on one of the custom pages. I want to add Navigation Hierachy Control Or equivalent on this custom page which will be based on managed metadata columns 'Business process' and 'Management model'. On the selection of a node from this hierarchy, i would like to filter the ListView on the page.

Is there a way to directly use Navigation Hierarchy that we get on AllItems.aspx page corresponding to List? or any other out of the box method to achieve this WITHOUT custom code?

Thanks and regards,


create custom application page with a ribbon and user control webpart


i am in stress how to start this what should be the first step

i want to create custom application page with a ribbon and some user
control web part to show document item properties.

Please help me regarding this


thanks in advance 



wasikhan junior software ENG

Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

Accessing the different controls inside a GridView control

how we can access a particular control which resides inside a GridView control. In this article I will show you how you can access different controls inside a GridView control. We will see how we can access a TextBox control, a DropDownList control and a ListBox control. If you are working with ASP.NET 1.X then you might want to check out my article Accessing Different Controls Inside a DataGrid.

In-Depth look at the GridView Control

In the last article we looked at few of the new controls available in Asp.net 2.0. We also talked about Grid View Control which has replaced the Asp.net 1.1 DataGrid control for good. In this article we will examine more features of the Grid View control. In this article we will see some of the common operations that can be performed using the GridView control. Apart from these operations there are many more functions that can be performed on the control and which we will see in the later articles

ASP.NET repeater control - databind with style

even used the inline editing features, which I at the time thought was the coolest way possible to write ASP.NET code ( I managed to write code to hide all other rows and only show the current one - the row being edited). With a nice looking EditTemplate it looked indeed very slick but it really turned into giant and hard to manage code behind files.
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