Sharepoint 2010 Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint 2010       RSS Feeds

Retrive Sharepoint List Items using List ID --Developement in SharePoint 2010

  Date: Feb 20    Category: Sharepoint 2010    Views: 3125

I have client requiremnt in Sharepoint 2010.we are Having one masterlist in
Sharepoint 2010 Contains all data ex: employeename

salary, spouse, children, office, department, family details, spouce details,
nationality etc....

First we need to get some data like shown in fig:name, salary, deprt with edit
button grid view. when user/manager clicks on edit button it needs to open
pop-up and show all family details related to that employee only.

I am able to show the data in gridview and also clicks on pop-up it is openings
form contains all the details. But i am not able to retrive the particluar
employee data in pop up. Couls any one help me How toget the data in modal
pop-up from the list. FYI..i created 2 visual webparts one is for family details
one is for showing the data in grid view. Client wants everything in webparts
only..Please help me out how to do it. If possible Please suggest me code also
how to retrive the data from the list in pop-up.



1 Answer Found

Answer #1    Answered On: Feb 20    

Attach a js function to your edit button click. Use the Modal Dialog
Framework of SP 2010 to open the pop up and send the item ID in
querystring. You will need to add references to SP.js and SP.Core.js to use
this. In your pop up web part (Visual), read this id and get the item from
the list. Hope this helps. Please let me know if you need further help.