SharePoint Products TechCenter >
SharePoint Products and Technologies Forums
>
SharePoint - Development and Programming
>
using a task list datas in web part
using a task list datas in web part
- hi
im inneed to write a web part coding using visual studio 2005 in which the coding is based on a tasklist.
i must take input from the task list and make the color coding according to the data in the list.
a list will be in a web page and the web part must take those datas as input and by using the web part the color must be changed in the list.
how to do this using visual studio 2005 coding...
Pls provide me help..
thanks in advance,
Regards,
Siva.
Answers
hi vijai kumar,
thanks for your reply..
Just similar to your reply but i want to create a web part which will do that process.
in that web site provided by you it is using sharepoint designer and code it manually.
but what i need is to make it as web part and deploy in all site...
i want to do that process through web part.. if i add the web part it should do it.
Pls provide me help..
Thanks in advance..
Regards,
Siva.
I'm afraid that there's no API currently associated with XSLT to let you change the appearance of a list/library.
XLST is embedded with the list/library prior to runtime, which means it is determined in designtime.
All members of SPList is listed:
SPList Members (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist_members.aspx)
What you can do is to use SPGridView(http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spgridview.aspx) and trap the RowDataBound Event(http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound.aspx) to set the color.
Keep It Simple and Stupid.- Marked As Answer byCharlie WuModeratorThursday, November 12, 2009 1:44 AM
All Replies
- Siva,
I guess you are looking for applying background color in custom list column based condition
Best Regards, G Vijai Kumar | My Sharepoint Blog - hi vijai kumar,
thanks for your reply..
Just similar to your reply but i want to create a web part which will do that process.
in that web site provided by you it is using sharepoint designer and code it manually.
but what i need is to make it as web part and deploy in all site...
i want to do that process through web part.. if i add the web part it should do it.
Pls provide me help..
Thanks in advance..
Regards,
Siva. hi vijai kumar,
thanks for your reply..
Just similar to your reply but i want to create a web part which will do that process.
in that web site provided by you it is using sharepoint designer and code it manually.
but what i need is to make it as web part and deploy in all site...
i want to do that process through web part.. if i add the web part it should do it.
Pls provide me help..
Thanks in advance..
Regards,
Siva.
I'm afraid that there's no API currently associated with XSLT to let you change the appearance of a list/library.
XLST is embedded with the list/library prior to runtime, which means it is determined in designtime.
All members of SPList is listed:
SPList Members (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist_members.aspx)
What you can do is to use SPGridView(http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spgridview.aspx) and trap the RowDataBound Event(http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound.aspx) to set the color.
Keep It Simple and Stupid.- Marked As Answer byCharlie WuModeratorThursday, November 12, 2009 1:44 AM

