This is a migrated thread and some comments may be shown as answers.

Grouppanel: drop indicator style of not groupable columns

4 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 22 Jun 2015, 09:37 AM

Hi,

We recently added row group functionality to our grids and we and our users are very happy with it.

In the grids in our applications grouping on some types of column is not allowed. It is not visible for the user by the hover style of the grouping panel grouping on the dragged column is not allowed until the column is dropped and the postback to the web-server is happened.

 In my case columns are resizable and reorderable also.

 It should be nice to disallow these column from been dropped and by adding style to the mouse cursor and/or the drop indicator of the grouppanel when GridTemplateColumn.Groupable=false.

4 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 25 Jun 2015, 07:28 AM
Hello,

Actually if the Groupable property is set to false you should not be allowed to group the column and a dragg-able element should not be created. Could you please send us a video illustrating the problem? Additionally if you can share with us one of the grids code with which this behavior can be observed that would be great.

Regards,
Angel Petrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Erik
Top achievements
Rank 1
answered on 25 Jun 2015, 01:35 PM

Hi Angel,

 In this case columns are dragg-able because column reording is allowed to put columns in a different order in the grid itself.

My code is to complex to provide a snippet of it. This is how I use the RadGrid from the code behind:

RadGrid gridview = new RadGrid();

// Enable column reorder
gridview.ClientSettings.AllowColumnsReorder = true;
gridview.ClientSettings.ReorderColumnsOnClient = false;
gridview.ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Reorder;

// Enable grouping
gridview.GroupingEnabled = true;
gridview.ShowGroupPanel = true;
gridview.GroupingSettings.ShowUnGroupButton = true;
gridview.ClientSettings.AllowDragToGroup = true;
gridview.ClientSettings.AllowGroupExpandCollapse = true;

// Add columns
gridview.Columns.Add(new GridTemplateColumn({ HeaderText = "Groupable1", Resizable = true, Reorderable = true, Groupable = true });
gridview.Columns.Add(new GridTemplateColumn({ HeaderText = "Not Groupable", Resizable = true, Reorderable = true, Groupable = false });
gridview.Columns.Add(new GridTemplateColumn({ HeaderText = "Groupable2", Resizable = true, Reorderable = true, Groupable = true });

// TODO Bind data...

Now drag the "Not Groupable" column on the grouppanel. The grouppanel will give you the idea that the grid will group on it when dropping it, but it is not. As a user I would like to see the cursor style changing to "no-drop" and the drop indicator not been shown.

 I hope this helps you to understand my issue.

0
Accepted
Angel Petrov
Telerik team
answered on 30 Jun 2015, 08:21 AM
Hello Erik,

Your observations are correct currently there is no visual indication that grouping will not be performed when the drop occurs. Please log a feature request regarding this requirement in our feedback portal so we could evaluate it and expose such functionality in the upcoming releases.

Regards,
Angel Petrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Erik
Top achievements
Rank 1
answered on 30 Jun 2015, 08:27 AM
http://feedback.telerik.com/Project/108/Feedback/Details/162673-grouppanel-drop-not-allowed-indication
Tags
Grid
Asked by
Erik
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Erik
Top achievements
Rank 1
Share this question
or