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


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

Custom ribbon button not showing when selecting item in webpart

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

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
Blog


View Complete Post


More Related Resource Links

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

Customize Form button now showing up on ribbon

  
I used SP2010 Beta for 7 months and the Customize Form button was available on the ribbon for lists. Now, I am on the RTM, and cannot figure out how to show this button. Is it a feature? Do you have to have InfoPath 2010 installed locally? (I do have this, but just wondering). Thanks in advance.

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

Button in Ribbon.ListItem.New doesn't appear when list is added via a webpart

  

I have added a button to a project task list (id = 150).
Everything works fine when I directly use the list. But when I add the list via a webpart to the site page my new button is not available. It's exactly the same ribbon as in the list view but my new button is not visible. Any suggestions?

 <CustomAction 
  Id="D75EA390-1983-42AE-AB72-D484CC09B412" 
  Location="CommandUI.Ribbon" 
  RegistrationId="150" 
  RegistrationType="List" 
  Title="Ribbon Customization for a Content Type">
  <CommandUIExtension>
   <CommandUIDefinitions>
    <CommandUIDefinition Location="Ribbon.ListItem.New.Controls._children">
     <Button 
      Id="F297920B-FF7A-48F5-B7BE-EB486E86C546" 
      Command="ContentTypeCommand" 
      CommandType="General" 
      Description="Connect" 
      LabelText="Connect&quo

How to insert a button as WebPart Custom Property.

  
I want to inset a button as Webpart custom property. any idea how to do it.
asim

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

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)

Add a Custom button to the Ribbon.

  

Hi there,

I want to add a custom button on page tab >> manage group using SPD 2010. Someone please help me how can I achieve this task?

Thanks

Canb SP

 


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 

Regards 

WasiKhan


wasikhan junior software ENG

Create a Outlook Task from Custom WebPart in Code

  

Hi

I have a requirement to create a Outlook Task , from a custom webpart through code .

Is this possible?

has any body tried this , if yes can you please give me an insight on how to acheive it.

Some sample Code would be highly appreciated.

Regards

Gaurav


Custom Button (Sharepoint 2007)

  

Hello,

 

I have a relatively small project to build a class sign up portal for my company.  I am about 90% done and this is one I have so far:

 

1 custom list off all classes called “Classes” (Class name, Data, teacher, etc, ..)

1 custom list of employees who signed up called “Signup sheet” (Employee Name, Class  name)

 

What I want is when you display a class information from the “Classes” list, I want a button on the bottom called “sign up for this class” that brings me to the new item page of “Signup sheet” with the class already filled in for you.  Seems easy on paper but I have been trying to do this for weeks.

 

I am ok with share point designer and am open to any suggestions.

 

Thanks in advanced,

Jordan 


Infopath button click event in custom workflow code.

  

Hi All,

I have designed the infopath form(Init) and integrated with my state machine workflow. i want to access button click event (designed in Infopath form) in my workflow code.

Can you help me.

Thanks,

Chandresh 

 


Button to copy selected item in dropdown to textbox

  
Hi, I found this bit of code which I tried and it isn't working. I just want to place a button next to a dropdown, and when clicked, the selected item in the dropdown will put into another textbox. <head><title>Untitled</title></head><body><script type="text/javascript">function copy() {var sel = document.getElementById("names");var text = sel.options.value;var out = document.getElementById("output");out.value += text+"\n";}</script> <select id="names"><option>Product One</option><option>Product Two</option><option>Product Three</option><option>Product Four</option></select><input type="button" onclick="copy()" value="Copy"><textarea id="output"></textarea> </body></html>   I saved this as a file and opened it in IE to test and nothing went into the textarea. Also i tried it in Firefox and the textarea said undefined each time I click the button. Can someone help to get this working?

Custom SSIS Data Flow Component Not Showing in Toolbox or GAC

  
Hello - I have created a very simple data flow component for SSIS (Actually, I am following this example:  http://www.microsoft.com/downloads/details.aspx?familyid=1C2A7DD2-3EC3-4641-9407-A5A337BEA7D3&displaylang=en).  However, when I register the DLL to the GAC, I am unable to find the assembly in C:\Windows\Assembly - even though the GACUTIL says "Assembly Registered Successfully".  Furthermore, after copying the DLL to the PipelineComponents folder for SSIS (C:\Program Files (x86)\Microsoft SQL Server\100\DTS\PipelineComponents), it does not show in the "Choose Items . . ." dialog box of SSIS.   I am running SQL Server 2008 Dev edition, Visual Studio 2010 with .NET 4.0, and Windows 7 Enterprise 64-bit edition.  Any assistance/thoughts would be appreciated. Thanks!

Overriding web.config in sharepoint webpart/using custom membership in web part

  
I'm developing a web part for MOSS 2007. The web part is being deployed to a web application which utilizes forms-based authentication, and role/membership providers to control users. The membership table has been edited to include addition user info (I am aware, that this isn't the best way to handle additional user, i.e. profiles etc., however, this is a requirement from another department). Since my web part needs to access this information, I was thinking of implementing a custom membership provider. So far I've followed: http://msdn.microsoft.com/en-us/library/6tc47t75.aspx and I've got my custom membership class, and a very stripped down membershipprovider-class. But how do I enable/use this membership provider in my web part? I've tried creating a simple web.config in the "WebPartCode" folder of my solution, next to my webpart code file, with connection string and membership provider tags. But I don't even really know how to build/reference/use the membership provider itself, so I don't know what else I need to do. I've built a C# class library project with the two classes (membershipprovider and custom membershipuser) and compiled it and installed it in the global assembly cache - is this correct? and how do I access them from here? Hope someone can help
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