Hi,
I try to grouping by expression on drag and drop. I use the expression from documentation as codebehind C#. But No solution only errors.
What are the problem?
ASPX
I use the Code from Documentation : Grouping in Drag and drop
Without == but only =
New ERROR
I try to grouping by expression on drag and drop. I use the expression from documentation as codebehind C#. But No solution only errors.
What are the problem?
ASPX
| <radGrid:RadGrid ID="gridContacts" OnNeedDataSource="gridContacts_NeedDataSource" AutoGenerateColumns="false" SkinsPath="~/Sitefinity/Admin/Themes/Default/Skins/Grid" Skin="Sitefinity" |
| OnItemCommand="ContactsGrid_Command" runat="server" |
| GridLines="None" Width="95%" AllowPaging="true" AllowSorting="True" PageSize="25" ShowGroupPanel="true" OnGroupsChanging="RadGrid1_GroupsChanging" GroupingEnabled="true" ClientSettings-AllowDragToGroup= "true" > |
| <ClientSettings AllowDragToGroup="True" /> |
| <AlternatingItemStyle BackColor="#FFA500" /> |
| <ItemStyle BackColor="#FFFFFF" /> |
| <GroupPanel PanelStyle-Height="25px"/> |
| <HeaderStyle Height="25px" BackColor="#637783" /> |
| <GroupHeaderItemStyle Height="20px" /> |
| <MasterTableView DataKeyNames="NbClients" AllowMultiColumnSorting="true" > |
| <Columns> |
I use the Code from Documentation : Grouping in Drag and drop
| Message d'erreur du compilateur: CS0019: L'opérateur '==' ne peut pas être appliqué aux opérandes de type 'Telerik.Web.UI.GridGroupsChangingAction' et 'Telerik.WebControls.GridGroupsChangingAction' |
| Erreur source: |
| Ligne 204 : //Expression is added (by drag/grop on group panel) |
| Ligne 205 : |
| Ligne 206 : if (e.Action == GridGroupsChangingAction.Group) |
| Ligne 207 : { |
| Ligne 208 : if (e.Expression.GroupByFields[0].FieldName != "NbClients") |
New ERROR
| Message d'erreur du compilateur: CS0200: La propriété ou l'indexeur 'Telerik.Web.UI.GridGroupsChangingEventArgs.Action' ne peut pas être assigné -- il est en lecture seule |
| Erreur source: |
| Ligne 204 : //Expression is added (by drag/grop on group panel) |
| Ligne 205 : |
| Ligne 206 : if (e.Action = GridGroupsChangingAction.Group) |
| Ligne 207 : { |
| Ligne 208 : if (e.Expression.GroupByFields[0].FieldName != "NbClients") |
