Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Hide Row in Custom NewForm.aspx of SharePoint Task based on Permission Level

$
0
0

Hi Team,

Today i would like to try on SharePoint Trimmer Control. I create one custom control by inheriting the SPSecurityTrimmerControl & make that possible to check the SharePoint Group.

Basically this is for Group based Show/Hide the Row instead of Permission which is out of box available. I tested that by adding that in the MyTasks.aspx Page & it is working fine till that i am adding My Own Message. like

<asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server"><myusergroupextender:SPUserGroupTrimmedControl id="mycontrol" groupsstring="5" runat="server">
    My Testing </myusergroupextender:spusergrouptrimmedcontrol><style type="text/css">
.ms-bodyareaframe 
{
	padding: 10px;
}</style> </asp:Content>

Then I tried that to implement that in Custom Create Task Page so, i can hide few fields like "Priority" or "Status" etc..

On that <tr> I surrounded it with the same control where it didn't work. I found "Custom controls into DataFormWebParts didn't work because of xslt error when using custom savebutton inside dataformwebpart "

Please let me know if someone know how to use Custom Control in DataFormWebPart where XSLT doesn't get any issue.

 

Hide Row in Custom NewForm.aspx of SharePoint Task based on Permission Level


Regards, Brijesh Shah


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>