.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

adding ribbon item to new panel

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#
how do i add ribbon item to a new panel at the right hand side of Actions on dispform.aspx using Sharepoint Designer2010? i dont want it under Manage or Actions but want a new panel. how do i create one?

View Complete Post

More Related Resource Links

Dynamic Checkboxlist exception when adding to Panel when using Master Page


In essence, I am creating Dynamic Checkboxlist controls and adding them to a Panel.  It works well when I do not have a Master Page configure to this webpage. Once I have a masterpage congifured.. I get a "Object Reference not set to instance of object" error on the Panel_Control.Controls.Add(Checkboxlistnew) line:

protected void Page_PreInit(object sender, EventArgs e)
        XML OXML = new XML();
        alistChkBoxLabels = OXML.XMLTransform("C:\\Documents and Settings\..\\Config_new.xml", "config_options/check_box/applications/app/@name");
        int count = 1;
        alistCheckisFacility = new ArrayList();
        alIDTracker = new ArrayList();
        while (count <= alistChkBoxLabels.Count)

            Checkboxlistnew = new CheckBoxList();
            Checkboxlistnew.ID = count.ToString();
            Checkboxlistnew.Items.Add(new ListItem(alistChkBoxLabels[count - 1].ToString(), alistChkBoxLabels[count - 1].ToString()));

            String sAppName = alistChkBoxLabels[count - 1].ToString().Trim();

            alistCheckisFacility = OXML.XMLTransform("C:\\Documents and Settings\\Administrator\\My Documents\\Visual Studio 2005\\WebSites\\User_Trial\\Config_new

Adding a list item that populates a particular part of a page

I am trying to create a list view in sharepoint designer that when you enter a list value it populates the right part of the page. Background - I am creating a list for a marketing newsletter that when you fill out the list form it will populate the marketing newsletter on page. its to save recreating it every month. the list has drop downs for addition and department and the data is inserted on the page. thanksSharepoint Customiser

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

Adding SplashScreen Item

Hi all, I need to add the SplashScreen Item to my c# project. I see that this item is already appear in the VB.Net project, but I don't have it in the C# project.   How can add it ? What is the problem it does't appear in the c# project?   Thanks in advance...

Adding Custom Actions to Ribbon UI in InfoPath forms

Hi experts, - I have a custom List in my site. - I have modified the default SharePoint List forms (DispForm.aspx, EditForm.aspx and NewForm.aspx) using InfoPath 2010, changes being related to the layout of input controls. - Then I wish to add a custom action (a print button - for printing based on modified layout) in the Ribbon Control of these InfoPath modified forms (i.e. displayifs.aspx, editifs.aspx, newifs.aspx). - I am doing the following http://www.endusersharepoint.com/2010/02/19/adding-custom-actions-to-the-ribbon-ui-in-sharepoint-2010-using-sharepoint-designer-2010/ but i guess, it only forms for the SharePoint List forms and not the Infopath modified forms. Any suggestions on how to add a custom action of 'Print' on the Ribbon UI of the list forms. Is there any other better approach? Kindly advise. -Pallz.

VS2010 has stopped working error adding new item to folders in MVC2



   I am using VS2010 Pro in 64 bit Windows 7. When I add a new item to a folder in an ASP.NET MVC2 project, VS frequently crashes with a "Visual Studio has stopped working" error and then closes down. If I re-open the project the item is not visible in the MVC project folder, (but it is visible to windows explorer although I think it's corrupted). If I then try to add the item again, it warns me that it already exists and asks to overwrite, choosing yes to overwrite usually works OK.  When adding an .edmx item it is more problematic, I can't overwrite it but because I know that there actually is a file in the folder, (although not visible and albeit corrupted), I can add it as an existing item and then choose "update model from database" to get it to work. This error is happening more and more frequently.

event handler - item adding and updating..example



I am a beginner to event handlers..I need to create something like..items created in List A should appear in List B, and when it is updated, it should appear in List B as well..are there like free samples that I can work on..I am not really good at programming

When adding new calendar item the title field is missing - MOSS 2007



A staff member just noticed that when adding a new item to a vacation calendar we have set-up - the Title column is missing.  They will finish creating the new calendar item and then when they go to edit it the Title column appears and they can fill it in.

Can figure out what caused this or how to fix - any ideas?

When I create a new test calendar the title column is displayed properly when creating new item - so not sure what happened with this calendar.

Hope someone has come across this before.

Thanks so much!

Repeater add
before every 1st item, adding
after every 2nd item


I have a repeater control:

<asp:Repeater ID="rep" DataSourceID="XMLDSCompare" runat="server">
                    <h4><%# XPath("title")%></h4>

Now if its the first item in the total resultset, I want to add <div> to ItemTemplate control, if its the 2nd item, I want to add </div>

So output would be (not including table tags generated by repeater control):

title 1
title 2
title 3
title 4
title 5
title 6

How would I do this in the ItemDataBound event of repeater control?

Issue with Announcement content type and adding a new item



I have the following issue with the (Silverlight?) form to add a new item:If the screen has many fields so scroll bars appear (i.e. it's longer than the screen), you can move up and down. YET, if you press to attach a file, the scroll bars dissapear, so you can't see the rest of the form.

To reproduce: 

a) make an annoucement list

b) Add a choice field, add many choises and enable multiple values - in order to have a longer-than-the-screen input form.

c) Go to the list , press add-new-item and attach a file: After that, you won;t be able to see all the input form.



Resizing Panel when adding controls


I have a panel on a form and I am adding controls to it from code behind.

Code behind:
First I am creating TableLayoutPanel
in loop I am adding controls to TableLayoutPanel
and then adding TableLayoutPanel to panel.

problem is I have specified panel height = 100 in designer. how to make it grow when more rows (controls) added to TableLayoutPanel?

At the same time I want to move controls below the Panel to move down..

| Panel		  |  --> I want to make this auto size
| Other Control1  |
| Other Control2  |
| Other Control3  |
| Other Control3  |

I tried setting Autosize=true for Panel and it didn't help!!

Custom ribbon button not showing when selecting item in webpart


Wondering if any one else seen this, I noticed custom ribbon buttons don't show up when I select item in document library in webpart view. Site is created using team site template and the webpart that shows contents of a document library is inside of a wiki editing control in team site home page

Button shows up correctly when I select the item once in document library view

Microsoft Certified Master | SharePoint 2007

Microsoft Ribbon for WPF - How to remove white gloss from Tab Panel


Using the Ribbon, I can set the background property to Black. This doesn't set the entire background to black, but only appears to set part of a gradient to black, leaving the top half of the tab's panel with a gradient fade to white. (or maybe it's a clear to white gradient overlaying the black background).

I'd provide an image but I can't find any tools allowing me to upload one. The XAML to reproduce is quite simple however, just start a new project with a the Ribbon for WPF (downloaded from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4) and set the Ribbon's background to black:


Event receiver while item adding in a document library in SharePoint2010



In my SP site i have various document sets.while i adding a new doc in the document set,i have to find the document belongs to which document set.I want to do it an event receiver..Please help me.

Event receiver while item adding in a document library in SharePoint2010



In my SP site i have various document sets.while i adding a new doc in the document set,i have to find the document belongs to which document set.I want to do it an event receiver..Please help me.

Specify page to redirect to when adding a item


Hey guys/girls/aliens

When I add a new item to a list and I click on the OK button (NewForm.aspx), I want it to redirect to a other page
How can I do this?

Reason for this is because I modified the NewForm.aspx and added some javascript to it.
This causes the link to go to the Homepage instead of going back to the listview.




By the way, If i can solve this by adding the JS to the masterpage instead of the NewForm.aspx page.
Please tell me how :P

Removing/Adding in Ribbon.PublishTab.Publishing section



I'm dealing with ribbon customization and it's working quite well. But when I try to change (remove or add) buttons to Ribbon.PublishTab.Publishing it is not working:

<CustomAction Id="
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