Drag Colums Grouped View

3 posts, 1 answers
  1. ManniAT
    ManniAT avatar
    885 posts
    Member since:
    Nov 2003

    Posted 28 Oct 2012 Link to this post


    I have a grid with servere Column Groups.
    -- "Base Product" "End Product" "Sales"
    And the user is enabled to drag columns.
    My problem - the user can now drag the column "Number of items" from Sales to "somewhere".

    This results in a "splitted group header".

    Is there a (simple) way to restrict dragging of a column within a column group?

    And just another question - how can I place text on the default loading indicator?
    I found no template for it - and also no property like "Loading content" or so.
    All I want to do is to place a text "Loading Items please be..." on the indicator.

  2. Answer
    Yoan avatar
    1128 posts

    Posted 01 Nov 2012 Link to this post

    Hello Manfred,

    About your first question:

    In order to control the reordering of the RadGridView's columns, you can subscribe to the ColumnReordering event and add some logic in the code behind. Check this forum post for reference. Although it is for Silverlight, the approach is similar and you can get an idea from it. In your case, you can check Column's group and cancel the reordering when you try to reorder a column to a different Column group. 

    About your second question:

    In order to achieve your goal, you can predefine the GridViewLoadingIndicator's template. Please find attached sample project showing you the approach.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. ManniAT
    ManniAT avatar
    885 posts
    Member since:
    Nov 2003

    Posted 04 Nov 2012 Link to this post

    Thank you for the quick response.
    The Loading Template works like a charm.

    And the "drag problem solution" is a least a workaround.
    It's missing "visual feedback" - so the user can drag where he wants - finding out that he can't drop AFTER dropping.
    Anyhow - it is good enough and the users will get used to it.

Back to Top