When inserting a dataview webpart in SP2010, checkboxes appear on the left side of each row.
To remove it, do the following from Sharepoint-
Go to the list - View Settings - in Tabular section, uncheck 'Allow individual inline editing'
To do it in SPD, there is no direct setting-
In the View tag of XSLTwebpart, add 'Tabular = False'
e.g.
before - <View Name="{123456788-A999-ABBC-VVYY-1234ABCDXX}" MobileView="TRUE" Type="HTML" Hidden="TRUE" DisplayName="TestView" Url="/SitePages/Test.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/generic.png">
after - <View Name="{123456788-A999-ABBC-VVYY-1234ABCDXX}" TabularView="False" MobileView="TRUE" Type="HTML" Hidden="TRUE" DisplayName="TestView" Url="/SitePages/Test.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/generic.png">
Note - add it to the view tag, not to the xsltwebpart. It will not work if added to xsltwebpart
Note - To hide checkbox in webPart title, add the below CSS in CEWP
.ms-WPHeaderTdSelection
{
display: none;
}
To remove it, do the following from Sharepoint-
Go to the list - View Settings - in Tabular section, uncheck 'Allow individual inline editing'
To do it in SPD, there is no direct setting-
In the View tag of XSLTwebpart, add 'Tabular = False'
e.g.
before - <View Name="{123456788-A999-ABBC-VVYY-1234ABCDXX}" MobileView="TRUE" Type="HTML" Hidden="TRUE" DisplayName="TestView" Url="/SitePages/Test.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/generic.png">
after - <View Name="{123456788-A999-ABBC-VVYY-1234ABCDXX}" TabularView="False" MobileView="TRUE" Type="HTML" Hidden="TRUE" DisplayName="TestView" Url="/SitePages/Test.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/generic.png">
Note - add it to the view tag, not to the xsltwebpart. It will not work if added to xsltwebpart
Note - To hide checkbox in webPart title, add the below CSS in CEWP
.ms-WPHeaderTdSelection
{
display: none;
}
Comments
Post a Comment