Hi,
I have a problem with grouping in a radGrid. When I try to add the grouping, I get the error message "Field xxx not found in the source table". However, when I remove the GroupByExpressions, the grid populates correctly with the field that was "not found" when the GroupByExpressions were present. I am using a needDataSource to bind my data as suggested in a previous post since I am pulling the data from an api. Any help would be greatly apreciated.
-Z
aspx
vb
I have a problem with grouping in a radGrid. When I try to add the grouping, I get the error message "Field xxx not found in the source table". However, when I remove the GroupByExpressions, the grid populates correctly with the field that was "not found" when the GroupByExpressions were present. I am using a needDataSource to bind my data as suggested in a previous post since I am pulling the data from an api. Any help would be greatly apreciated.
-Z
aspx
<telerik:RadGrid ID="dgFeatures" runat="server" GridLines="None" AutoGenerateColumns="False" AllowFilteringByColumn="True" |
AllowPaging="True" AllowSorting="True" ShowGroupPanel="True" ShowFooter="True" EnableLinqExpressions="false" > |
<ClientSettings AllowRowsDragDrop="true"> |
<Selecting AllowRowSelect="True" /> |
</ClientSettings> |
<MasterTableView GroupLoadMode="Client" ShowGroupFooter="True" allowmulticolumnsorting="True" pagesize="100" DataKeyNames="Id, Rank, Est,Priority "> |
<RowIndicatorColumn Visible="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn Visible="False"> |
<HeaderStyle Width="19px"></HeaderStyle> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridBoundColumn SortExpression="Name" DataField="Name" HeaderText="Feature" |
UniqueName="Feature" ConvertEmptyStringToNull="False" /> |
<telerik:GridBoundColumn SortExpression="Rank" DataField="Rank" HeaderText="Rank" |
UniqueName="Rank"/> |
<telerik:GridBoundColumn DataField="ID" HeaderText="Id" UniqueName="Id" |
Visible="False"/> |
<telerik:GridBoundColumn DataField="Priority" HeaderText="Priority" |
UniqueName="Priority" /> |
<telerik:GridBoundColumn DataField="Backlog" |
HeaderText="Backlog Candidate" UniqueName="BacklogCandidate" /> |
<telerik:GridBoundColumn FooterText="Total Points" DataField="PlanEst" |
HeaderText="Tech Points" UniqueName="TechPoints" /> |
<telerik:GridBoundColumn DataField="EstRelease" |
HeaderText="Est Release" UniqueName="EstRelease" /> |
</Columns> |
<GroupByExpressions> |
<telerik:GridGroupByExpression> |
<GroupByFields> |
<telerik:GridGroupByField FieldName="EstRelease" /> |
</GroupByFields> |
<SelectFields> |
<telerik:GridGroupByField FieldName="EstRelease" HeaderText="Estimated Release Date" /> |
</SelectFields> |
</telerik:GridGroupByExpression> |
</GroupByExpressions> |
</MasterTableView> |
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> |
</telerik:RadGrid> |
vb
Private Sub dgFeatures_NeedDataSource1(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles dgFeatures.NeedDataSource |
Me.dgFeatures.DataSource = Me.records |
End Sub |