how to remove the new document option in sharepoint. - sharepoint-2010

I have form library in sharepoint 2010. In that library list workflow is associated. Whenever any document is added to
the library, new document symbol in green color is appearing behind the document.I have googled and got to know that
duration of new document symbol can be reduced or extended using code or command.
My requirement is: First time when document is loaded new document symbol should be there. But when approver approves the document that new document symbol should be disappeared. Is there any way to do this??
Any help is appreciated.

If I had to do this, I would use jQuery to check the status of the document client side. If the document is approved, then change the css of the image element so it was no longer displayed (display:none).

It's not exactly an answer to you question, but it's worth mentioning that there is an out-of-the-box command allowing to change the number of days the "New" icon is displayed:
stsadm -o setproperty -pn days-to-show-new-icon -pv 42
How to stop the !New tag from appearing when you add items to your SharePoint Team Services and SharePoint Services Web site
Days-to-show-new-icon: Stsadm property

Related

The “Navigtionmenu” control is not showing up in the Toolbox in a .NET project VS2010 and 2012

Why The “Navigtionmenu” control is not showing up in the Toolbox in a .NET project VS2010 and 2012?
but why did the screenshot I got from google below appear toolbox "NavigtionMenu"?
Thanks
jack
I just did a search here for "navigationmenu" and got no relevant matches, so I don't think that such a control even exists. Given the generic icon in that screenshot, it's probably a third-party control or even second-party, i.e. created by the person who posted that screenshot. In fact, I think that that is the icon that used to denote a user control and is still used for a user control in the Add New Item dialogue. I suggest that you check that link you found and see whether it includes instructions for creating it.

Delete Only My webbrowser Cache

in my my application i have webbrowser control, i don't want that users trace my web address, Because when i got to internet explorer in the history panel i found my website; Already on the list.
by using windows shell command they Will kill the whole user history; also they show me dialog box. it's not professional at All;
i mean this Command Line :
System.Diagnostics.Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 1")
So i would like to have solution form you masters how to remove only my entry for exemple : www.XXXXXXX.Net
Thank you best Regards
What you want to do may not be possible, check this link:
A quote from the answer provided by MSDN support at the link:
"Microsoft hasn't provided methods or events for users to iterate or clear the URL navigation history. But with the events already provided, like Navigated, Navigating, you could implement your own navigation history class to log or clear the history."
There are also other links on the thread that may help you to develop a solution.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/dded6546-6e22-4542-b29f-7d0e1ec048a1/clear-browser-history-in-webbrowser-control?forum=csharpgeneral

Drop Down Form for Date is Deformed

I use sharepoint 2010 and I get a deformed pop up menu for Date selection. Nothing fancy here. Just a simple form to enter some data with date.
Have you seen this before? I get the same effect in Chrome/Firefox latest versions.
Thank you in advance
This is a problem with your SharePoint site's CSS (or possibly with JavaScript that affects the CSS).
That big image is a spritesheet; CSS is supposed to crop the visible region so that you only see the specific sprites that are relevant to the current control.
You can pull up the developer tools with F12 and inspect the image element and its containers to see what CSS is currently applied, as well as check for any errors in the JavaScript console.
Clear your browsers cache and reload page. Delete the datetime column and create a new.

UI Designer not in Solution Explorer and unable to get the tool

First of all, I am developing an application in VB.NET, till yesterday it was all good. I saved the project and closed it, now when i started working on that application, i found that there was no way to open the UI area for the application. I am able to see the code behind it i.e. on dashboard.Designer.vb but not the UI. I am able to see the the application after running it using F5. What would be the possible reason for it, and how i can solve it.
Secondly, i tried to find search a lot for this tool but unable to get any, if somebody can tell me what tool is this or any similar tool, it would be of great help.
I was searching for long and found the answer:-
What we need to do is just add the following code in the blank dashboard.vb file
Public Class dashboard
End Class
And this will get the form back.
The second question was answered by #Code Gray
1. Outlook like sidebar and display in Outlook
2. Outlook navigation bar control for .NET application

How to add a webpart to every document library (existing and future)

I'm working on a webpart for SharePoint 2010 and I would like to know how to config it to work in every existing and future document library. It won't be good for the project to add it every time a new document library is created.
Any ideas?
You need to create a custom List Definition which will include its own AllItems.aspx with your custom web part embedded.
However, this will work if you create the library of this template in future not for others.
Other solution could be to have your web part as a web server control and include it in your master page. This way, the control can find out if there is any ListView web part is present on page.