I have a grid bound to a sql data source. there are gridbound columns and gridtemplatecolumns. an example of each column is shown below. in this example, the drag and drop grouping will work for the AddressLine2 gridboundcolumn but not for the City gridtemplatecolumn. As you can see, Groupable is set true and the template column has a GroupByExpression of City but when I drop it, no grouping occurs. what else do I need to do to make this work?
| <telerik:GridBoundColumn DataField="AddressLine2" HeaderText="AddressLine2" SortExpression="AddressLine2" |
| UniqueName="AddressLine2" AutoPostBackOnFilter="True"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn HeaderText="City" DataField="City" SortExpression="City" |
| Groupable="true" GroupByExpression="City" UniqueName="CityColumn" AutoPostBackOnFilter="True"> |
| <EditItemTemplate> |
| <telerik:RadComboBox ID="CityEditControl" runat="server" Skin="Web20" DataSourceID="lkpCities" |
| DataTextField="City" DataValueField="UID" SelectedValue='<%# Bind("lkpCitiesID")%>' |
| MarkFirstMatch="true" AppendDataBoundItems="true"> |
| <Items> |
| <telerik:RadComboBoxItem Text="Select" Value="0" /> |
| </Items> |
| </telerik:RadComboBox> |
| </EditItemTemplate> |
| <ItemTemplate> |
| <%#Eval("City")%> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |