Grouppanel: drop indicator style of not groupable columns

5 posts, 1 answers
  1. Erik
    Erik avatar
    28 posts
    Member since:
    Aug 2010

    Posted 22 Jun 2015 Link to this post

    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.

  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1099 posts

    Posted 25 Jun 2015 Link to this post

    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
  3. Erik
    Erik avatar
    28 posts
    Member since:
    Aug 2010

    Posted 25 Jun 2015 in reply to Angel Petrov Link to this post

    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.

  4. Answer
    Angel Petrov
    Admin
    Angel Petrov avatar
    1099 posts

    Posted 30 Jun 2015 Link to this post

    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
  5. Erik
    Erik avatar
    28 posts
    Member since:
    Aug 2010

    Posted 30 Jun 2015 in reply to Angel Petrov Link to this post

    http://feedback.telerik.com/Project/108/Feedback/Details/162673-grouppanel-drop-not-allowed-indication
Back to Top