View a sharepoint list inside a webpart SharePoint2010 - sharepoint-2010

I've developed this webpart on sharepoint 2010 that displays some query results in a simple grid, the customer want to extend this to a sharepoint list to leverage the sharepoint list functionality.
is there a simple straightforward approach to show the results in a list inside a webpart?
Many thanks

You can use ListViewByQuery control within your webpart.

Related

Sharepoint 2010 Summary link webpart - Need to display different color for different summary link webpart

I have two summary link webpart. I applied CSS for one webpart and same CSS is applied to another webpart too .. kindly help to display different color to webparts.
.dfwp-list{background-color: #0072C6;}
you need to write selectors specifically for the second webpart.
a not so good solution, but will do the job, is finding the id of the webpart and then write
#webpartid .myClass{}
ideally you shoukd include this in the page itself maybe in a CEWP to make sure other pages/webparts are not affected

Custom ASPX Form whats the better way

I have developed a portal using SharePoint 2010 (Standard Edition). I want to develop a Master-Detail "Requisition" form using Visual Studio 2010. I don't want users to access the List and click on "Add New" to access the form. I want to create a link on portal's homepage like "Requisition Form" when user will click on the link it should open the form right there.
Should I create a Visual WebPart ..then create new page and embed the webpart there? or should I develop WebPart Page..I've never done webpart page so what's the better approach? and to Edit the page do I need to create another Visual part with Gridview control and fill currently logged in user's Requisitions including Item ID and pass it on to MyCustomRequisitionEditForm.aspx ?
Please advise.
Why don't you customize standard new form of the list with Sharepoint Designer or InfoPath? You can create a link to this form on the homepage of your portal.

Can I link items in one list to items in parent site list in Sharepoint 2010?

I have a parent site with several subsites in SharePoint 2010.
I have a list in the parent site (call it Product Backlog) that lists in the subsites (Sprint Backlog) need to be able to link to.
Is this possible in SharePoint 2010? That is, Can I add a lookup field in my subsite lists that points to the parent site list as the source of the data?
This is a common requirement. Event though there isn't any out-of-the-box solution, there are some workarounds for this. Check this out

Navigation bar and Menu in sharepoint 2010

I have a custom Mega drop down Menu need to brand it on sharepoint 2010 am I obliged to override the specific CSS of sharepoint menu or there is another solution if there is anaother one how can i do it cause the menu that i need is so complicated. thanks in advance please guys some help is needed here :)
Drop downs in list forms (choice or lookup fields) can be customized using InfoPath designer. In Aspx pages, masterpages and web parts, the drop down lists are normal ASP.NET DropDownList controls and can be customized via css classes as usual.

SharePoint Designer 2010 List Forms

Are SharePoint 2010 Designer List Forms portable or custom rendering templates still the best way to customize the List Forms? InfoPath 2010 is out of question because of enterprise licensing issues.
Regards,
Nitin
It depends on the extent of your customization. You can achieve quiate a lot with the standard DataFromWebPart and custom XSLT but if you want to add custom controls you'll run into problems (as highlighted here http://www.chaholl.com/archive/2010/01/26/extending-the-dataform-web-part-to-allow-custom-field-controls.aspx).
For extensive customization the best bet is to create a custom webpart and include it on the edit form. Bear in mind that field controls automatically pick up and update content from the SPContext object so calling SPContext.Current.Listitem.Update() is enough to save the values of all field controls in your custom webpart. Of course if you're using standard asp.net control on there as well you'll need to pickup and set their values manually.