Я создал список, используя определение списка + экземпляр списка из VS 2010. Я также создал представления списка для списка.Когда я добавляю Свойства группировки и подкачки для пользовательских представлений, отличных от представления «Все элементы», он не обновляет свойства подкачки и группировки по свойствам для настраиваемых представлений.
Вот мой раздел представления в schema.xml
<Views>
<View DisplayName="All Items" DefaultView="TRUE" BaseViewID="1" Type="HTML" MobileView="TRUE" MobileDefaultView="TRUE" ImageUrl="/_layouts/images/generic.png" XslLink="main.xsl" WebPartZoneID="Main" WebPartOrder="1" Url="AllItems.aspx" SetupPath="pages\viewpage.aspx">
<XslLink>main.xsl</XslLink>
<Query>
<OrderBy>
<FieldRef Name="Title" />
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="Attachments" />
<FieldRef Name="LinkTitleNoMenu" />
<FieldRef Name="Property_x0020_Type" />
<FieldRef Name="Hotel_x0020_Status" />
<FieldRef Name="Union" />
<FieldRef Name="Local_x0020_Number" />
<FieldRef Name="Comments" />
</ViewFields>
<RowLimit Paged="TRUE">30</RowLimit>
<Aggregations Value="Off" />
</View>
<View DisplayName="All By Hotel name" BaseViewID="1" Type="HTML" MobileView="TRUE" ImageUrl="/_layouts/images/generic.png" XslLink="main.xsl" WebPartZoneID="Main" WebPartOrder="1" Url="All By Hotel name.aspx" SetupPath="pages\viewpage.aspx">
<XslLink>main.xsl</XslLink>
<Query>
<GroupBy Collapse="TRUE" GroupLimit="30">
<FieldRef Name="Title" />
</GroupBy>
<OrderBy>
<FieldRef Name="ID" />
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="Attachments" />
<FieldRef Name="LinkTitle" />
<FieldRef Name="Property_x0020_Type" />
<FieldRef Name="Hotel_x0020_Status" />
<FieldRef Name="Union" />
<FieldRef Name="Local_x0020_Number" />
<FieldRef Name="Comments" />
</ViewFields>
<RowLimit Paged="TRUE">30</RowLimit>
<Aggregations Value="Off" />
</View>
<View DisplayName="By Hotel Status" BaseViewID="1" Type="HTML" MobileView="TRUE" ImageUrl="/_layouts/images/generic.png" XslLink="main.xsl" WebPartZoneID="Main" WebPartOrder="1" Url="By Hotel Status.aspx" SetupPath="pages\viewpage.aspx">
<XslLink>main.xsl</XslLink>
<Query>
<GroupBy Collapse="TRUE" GroupLimit="30">
<FieldRef Name="Hotel_x0020_Status" />
</GroupBy>
<OrderBy>
<FieldRef Name="ID" />
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="Attachments" />
<FieldRef Name="LinkTitle" />
<FieldRef Name="Property_x0020_Type" />
<FieldRef Name="Hotel_x0020_Status" />
<FieldRef Name="Union" />
<FieldRef Name="Local_x0020_Number" />
<FieldRef Name="Comments" />
</ViewFields>
<RowLimit Paged="TRUE">30</RowLimit>
<Aggregations Value="Off" />
</View>
<View DisplayName="By Hotel Union" BaseViewID="1" Type="HTML" MobileView="TRUE" ImageUrl="/_layouts/images/generic.png" XslLink="main.xsl" WebPartZoneID="Main" WebPartOrder="1" Url="By Hotel Union.aspx" SetupPath="pages\viewpage.aspx">
<XslLink>main.xsl</XslLink>
<Query>
<GroupBy Collapse="TRUE" GroupLimit="30">
<FieldRef Name="Union" />
</GroupBy>
<OrderBy>
<FieldRef Name="ID" />
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="Attachments" />
<FieldRef Name="LinkTitle" />
<FieldRef Name="Property_x0020_Type" />
<FieldRef Name="Hotel_x0020_Status" />
<FieldRef Name="Union" />
<FieldRef Name="Local_x0020_Number" />
<FieldRef Name="Comments" />
</ViewFields>
<RowLimit Paged="TRUE">30</RowLimit>
<Aggregations Value="Off" />
</View>
<View DisplayName="By Local number" BaseViewID="1" Type="HTML" MobileView="TRUE" ImageUrl="/_layouts/images/generic.png" XslLink="main.xsl" WebPartZoneID="Main" WebPartOrder="1" Url="By Local number.aspx" SetupPath="pages\viewpage.aspx">
<XslLink>main.xsl</XslLink>
<Query>
<GroupBy Collapse="TRUE" GroupLimit="30">
<FieldRef Name="Local_x0020_Number" />
</GroupBy>
<OrderBy>
<FieldRef Name="ID" />
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="Attachments" />
<FieldRef Name="LinkTitle" />
<FieldRef Name="Property_x0020_Type" />
<FieldRef Name="Hotel_x0020_Status" />
<FieldRef Name="Union" />
<FieldRef Name="Local_x0020_Number" />
<FieldRef Name="Comments" />
</ViewFields>
<RowLimit Paged="TRUE">30</RowLimit>
<Aggregations Value="Off" />
</View>
<View DisplayName="Summary" BaseViewID="1" Type="HTML" MobileView="TRUE" ImageUrl="/_layouts/images/generic.png" XslLink="main.xsl" WebPartZoneID="Main" WebPartOrder="1" Url="Summary.aspx" SetupPath="pages\viewpage.aspx">
<XslLink>main.xsl</XslLink>
<Query>
<OrderBy>
<FieldRef Name="ID" />
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="Attachments" />
<FieldRef Name="LinkTitle" />
<FieldRef Name="Property_x0020_Type" />
<FieldRef Name="Hotel_x0020_Status" />
<FieldRef Name="Union" />
<FieldRef Name="Local_x0020_Number" />
<FieldRef Name="Comments" />
</ViewFields>
<RowLimit Paged="TRUE">3</RowLimit>
<Aggregations Value="Off" />
</View>
</Views>
При развертывании списка пользовательские представления не имеют нумерации страниц или групп, связанных с ним.