I'm learning ASP.NET and C#, using DNN.
I'm actually trying to show a list, and group all elements by one.
Since I've got no ideas about how to do it, I try to follow the Telerik tutorial.
But I've got an error, telling me
Telerik.Web.UI.RadGrid does not have a public property named GroupByExpressions
And I got the same for
GridGroupByExpression, SelectFields, GridGroupByFields, groupByFields, and few others
Searched too on Telerik Doc about grouping, but didn't found anything which helped, at least to understand why.
I checked to Telerik Doc too about these elements, and of course, they exist
Any help would be appreciate. Thanx.
Here my code
<rad:RadPageView runat="server" ID="RadPageView3">
<h2>Here my futur awesome work</h2>
<asp:UpdatePanel runat="server" ID="UpdatePanel1" ChildrenAsTriggers="True" UpdateMode="Conditional">
<ContentTemplate>
<rad:RadGrid runat="server" ID="grdCustomer" AutoGenerateColumns="False" GridLines="None" CssClass="dnnRadGrid mgCustomersGrid"
AllowPaging="true" AllowCustomPaging="true" PageSize="50" AllowSorting="true" AllowFilteringByColumn="True"
EnableLinqExpressions="False" OnNeedDataSource="GrdCustomerOnNeedDataSource">
<GroupingSettings CaseSensitive="false" />
<ClientSettings AllowDragToGroup="True"/>
<GroupByExpressions>
<rad:GridGroupByExpression>
<SelectFields>
<rad:GridGroupByField FieldAlias="EndUserCompany" FieldName="EndUserCompany"></rad:GridGroupByField>
</SelectFields>
<GroupByFields>
<rad:GridGroupByField FieldName="EndUserCompany" SortOrder="Ascending"></rad:GridGroupByField>
</GroupByFields>
</rad:GridGroupByExpression>
</GroupByExpressions>
<MasterTableView DataKeyNames="EndUserCompany">
<Columns>
<rad:GridBoundColumn HeaderText="NumLicense" DataField="NumLicense"
FilterControlWidth="99%" ShowFilterIcon="False" AutoPostBackOnFilter="True" />
<rad:GridBoundColumn HeaderText="StatusLicense" DataField="StatusLicense"
FilterControlWidth="99%" ShowFilterIcon="False" AutoPostBackOnFilter="True" />
<rad:GridBoundColumn HeaderText="NameProduct" DataField="NameProduct"
FilterControlWidth="99%" ShowFilterIcon="False" AutoPostBackOnFilter="True" />
<rad:GridTemplateColumn HeaderText="ActiveMaintenance" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="50" ItemStyle-HorizontalAlign="Center" AllowFiltering="False">
<ItemTemplate>
<dnn:DnnImage Runat="server" ID="activeMaintenance" IconKey="Checked" Visible="False" />
<dnn:DnnImage Runat="server" ID="noActiveMaintenance" IconKey="Unchecked" Visible="False" />
</ItemTemplate>
</rad:GridTemplateColumn>
<rad:GridBoundColumn HeaderText="EndUserCompany" DataField="EndUserCompany"
FilterControlWidth="99%" ShowFilterIcon="False" AutoPostBackOnFilter="True" />
</Columns>
</MasterTableView>
<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
<Selecting AllowRowSelect="True"></Selecting>
<Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True"
ResizeGridOnColumnResize="False"></Resizing>
</ClientSettings>
<GroupingSettings ShowUnGroupButton="true"></GroupingSettings>
</rad:RadGrid>
<input type="hidden" id="hidCookie" runat="Server" />
</ContentTemplate>
</asp:UpdatePanel>
</rad:RadPageView>
Does the GroupByExpressions element have to be a child of MasterTableView element?
ref: http://www.telerik.com/help/aspnet-ajax/grid-group-by-declarative-definition.html