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


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Placing the ribbon in a custom div

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

I got some Jquery code off Tom Wilsons page on branding. Im going to insert some Jquery into my site, but he mentions the code assumes that the ribbon has been placed in a custom div with the class of “ribbon-wrapper” How do I go about placing the ribbon in a custom Div named "ribbon-wrapper"

Im using V4 master Sharepoint 2010




View Complete Post


More Related Resource Links

Custom Ribbon action using quick step for workflow

  
I created custom button using the quick step in ribbon, and configured to invoke a workflow. It shows start and stop page of workflow where I have to click start. How to start workflow directly from the ribbon without this redirection to page.  

Custom actions and URL tokens when working with the Ribbon

  
I'm trying to add a new item to the Ribbon using a custom action in a VS SP2010 project. The new action shows up where we want it but the problem we are facing is that tokens like {ItemId} or {SelectedItemId} are not parsed when used in the CommandAction attribute. I would like to use these tokens and construct a URL pointing to an application page we've created. In the same way one can do using UrlAction when adding custom actions to the ECB menu (this is working fine in our project). The custom action below simply prints out different tokens. When run it seems like the tokens {SiteUrl},{SelectedListId} and {SelectedItemId}are parsed but for me both SelectedListId and SelectedItemId are null. Are there any other tokens that can be user or is there a better way to get hold of the item and list for the context? <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="{1f2da003-2069-4d4a-8fc5-1deeb98ecdda}" Location="CommandUI.Ribbon" Sequence="20"> <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.ListForm.Display.Manage.Controls._children"> <Button Id="{ca157255-5ef3-4f1c-bcb6-6ff5ff7610fe}" Command="{7887e42e-

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 catch Save Ribbon event from code-behind for the custom webpart

  
Hi there, How can a custom web part(sitting on top of PDP) catch the Save Ribbon event from code? I’ve been looking around for solution, but not yet find one…. Thank you, —JoeJoe

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.

Set Custom Ribbon Tab as default selected --> how?

  
hi, is it possible to set a custom tab as default selected?   right now, if the page loads, the listtools tab is selected; but i need the custom tab selected by default;   iv read, that it is not possible e.g. in word 2007 but what about sp 2010?

Custom Ribbon Feature is Being Cached

  
Custom Ribbon Feature in Sharepoint 2010 is being Cached by IE using the following file "http://....../_layouts/commandui.ashx?ver=-1002291061&id=Ribbon.CustomCalendar.EventsTab&lcid=1033&qt=ribbonvisibletabdeep After changes are made to the Feature and then deployed the new changes do not show up unless this File is deleted from the Browser. Is there a way for the Browser to detect new Feature and automatically downoad it? Any ideas?   Please help.  

Custom Ribbon and getSelectedItem

  

Hello,

i have a problem to get a Colum Value of a selected Library Item when i click my custom Ribbon Button.

The Button call this Javascript function:

function showItemColum()
{
var selectedItems = SP.ListOperation.Selection.getSelectedItems();
var currentListGuid = SP.ListOperation.Selection.getSelectedList();
var context = SP.ClientContext.get_current();
var currentWeb = context.get_web();
var currentList = currentWeb.get_lists().getByID(currentListGuid);
var k;

if (k in selectedItems) {
var listitem = currentList.getItemById(selectedItems[k].id);
...
...
}
}

How can i get the Value of the Colum "Status" (for example)?

Thank you for help.


Custom Ribbon Feature

  

Hello,

i've created a custom Ribbon Feature in Visual Studio 2010 and deployed it to my Sharepoint 2010.
My Problem is now, that my custom Ribbon are available in every Library.
Is there any possibility to make my Ribbons available only on one single Library.

Thanks for help.


Custom Ribbon and getSelectedItem Colum

  

Hello,

i have a problem to get a Colum Value of a selected Library Item when i click my custom Ribbon Button.

The Button call this Javascript function:

function showItemColum()
{
var selectedItems = SP.ListOperation.Selection.getSelectedItems();
var currentListGuid = SP.ListOperation.Selection.getSelectedList();
var context = SP.ClientContext.get_current();
var currentWeb = context.get_web();
var currentList = currentWeb.get_lists().getByID(currentListGuid);
var k;

if (k in selectedItems) {
var listitem = currentList.getItemById(selectedItems[k].id);
...
...
}
}

How can i get the Value of the Colum "Status" (for example)?

Thank you for help.


Custom ribbon button that is visible "everywhere"

  

Hi,

I am trying to create a custom ribbon button that will be visible whenever its parent group is present. For the moment the only way I can make it visible is if I explicitly type RegistrationId and RegistrationType under CustomAction. Removing either or both results in the button dissapearing.

Any help would be greatly appreciated! I have been googling for ages trying to find a solution.

My elements.xml file:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- Registration

InfoPath forms and custom Ribbon

  

Hi,

I would customize the ribbion from the "new item" and "edit item"-form of my custom list. It works when I create new "custom Actions" via the SharePoint Designer. The ribbon location is by default "Ribbon.ListForm.Edit.Commit.Controls._children" so far so good.

I have by default the "NewForm.aspx", "EditForm.aspx" and "DeleteForm.aspx" files. Now i customized the forms in InfoPath to have a better look and created some rules and so on. After publish, "newifs.aspx", "editifs.aspx", "deleteifs.aspx" were create and I deleted the old (NewFrom etc).

But now the ribbon location is changed to "Ribbon.Tabs.InfoPathListDisplayTab.*" (seen in Browser by FireBug). I tryed to switch the ribbion location in the custom action via SP Designer to "Ribbon.Tabs.InfoPathListDisplayTab.Commit.Controls._children" without success. 

Know anybody where the definition "Ribbon.Tabs.InfoPathListDisplayTab" comes from? In CMDUI.xml she isn't..

And how can I append custom actions in the ribbon to published infoPath forms?

Thanks edel

 


Deploy and update script file with custom ribbon tab to Sharepoint Server 2010

  

Hey everyone,

currently I'm building a custom tab for Sharepoint Server 2010 and at the moment I'm stuck on the following issue,
with the first debug deployment Visual Studio sends the .js file that provides some functions for the ribbon elements from Scripts folder in the VS project
to Sharepoint Server.
However, it won't apply any changes I did on the script afterwards to the file on the server.
So the effect is, that as soon as I do the next debug, the previous script is being used by Sharepoint and the new version, containing the new code, is left aside.

It seems to me as if Visual Studio would only deploy the .js file just once and then rely to this copy, maybe there are some configuration settings to make, but after hours of research, I still can't figure out where things do go wrong or what configuration to apply to update the script on the server.
I couldn't locate the file on hdd either, even searched the whole fs but the results showed only the new script file.

Any help on this would be very much appreciated, this issue drives me nuts and consumes plenty of time ;)

Workaround at the moment: each time the script is changed, set up new project... :D

Greets, Norman

P.S: Yes, I did flush

Custom ribbon button on content type not shown in XsltListViewWebPart

  

Hello all,

As a bit of background: I'm currently busy developing a content type with some kind of status (waiting / in progress / done). I want to make the users life a bit easier to complete an item so I want to add a button to the ribbon that sets the selected items status to "Done".
This works when I go to the list and click on the item (I see my button and it works perfectly). The problem is that this button is not visible when I add a view of this list on the homepage, then suddenly my button does not show.

Does anybody know what can be done to also show the button inside the ribbon of the XsltListViewWebpart? Below is my elements.xml that I use.

Regards,
Jeroen

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <CustomAction
  Id="Ribbon.ListItem.Actions.AddAButton"
  Location="CommandUI.Ribbon"
  RegistrationId="0x0100060591ADDBE7484892D56875DAC5C558"
  RegistrationType="ContentType"
  Title="Add a Ribbon Button">
  <CommandUIExtension>
   <CommandUIDefinitions>
    <CommandUIDefinition
     Location="Ribbon.ListItem.Actions.Controls._children">
     <Button Id="Ribbon.ListItem.Actions.NewRibbonButton"
      Comman

Custom Ribbon Button server side click handling

  

Hi,

I am working on SharePoint 2010. In my application we need to perform some server side logic on click of custom ribbon button, I have added a custom button to sharepoint ribbon but not sure how to execute server side logic on ribbon button click.

How to Specify the Assembly/Class/Method name for button click handler? Can some one post a sample on this?

My CustomAction definition is below:

<CustomAction
    Id="MyTaskList.Complete"
    Title="Complete"
    Description="Completes tasks"
    RegistrationId="10006"

how to add custom button to ribbon using server object model?(not using xml)

  
how to add custom button to ribbon using server object model?(not using xml)

Create custom tab in ribbon similar to the Page tab

  

Hi,

I want to create a custom tab in the ribbon that is visible when the Page tab is visible. Is this possible?

 

Regards,
Martin


Categories: 
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