remove Drag a column header .. from Grid

7 posts, 0 answers
  1. john
    john avatar
    9 posts
    Member since:
    Jun 2009

    Posted 28 Aug 2009 Link to this post

    I am looking for an option to remove the "drag a column header and drop it here to group ..." from a child grid in a grid hierachy:

    It is occupying unnecassary space as the user cannot move columns .I tried CanUserReorderColumns

     

    ="False"  but it still shows up

    Thanks

     

  2. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 28 Aug 2009 Link to this post

    try setting the property ShowGroupPanel in the child grid, that should do it.
  3. DevCraft banner
  4. john
    john avatar
    9 posts
    Member since:
    Jun 2009

    Posted 28 Aug 2009 Link to this post

    I did as my XAML is:

    <

     

    telerikGridView:RadGridView x:Name="MyGrid" AutoGenerateColumns="false" ShowGroupPanel="False" CanUserReorderColumns="False" >

     

     

     

    <telerikGridView:RadGridView.Columns >

     

     

     

    <telerikGridView:GridViewDataColumn UniqueName="Name" Header="Name" />

     

     

     

    </telerikGridView:RadGridView.Columns>

     

     

     

    </telerikGridView:RadGridView>

     

  5. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 28 Aug 2009 Link to this post

    do you have the same property in your childgrid definition in the grid hierarchy ?
  6. john
    john avatar
    9 posts
    Member since:
    Jun 2009

    Posted 28 Aug 2009 Link to this post

    My xaml is as above and the code looks like:

     

    GridViewTableDefinition detailDefinition = new GridViewTableDefinition();

     

     

    detailDefinition.Relation =

    new PropertyRelation("items");

     

     

    this.MyGrid.TableDefinition.ChildTableDefinitions.Add(detailDefinition);

     

     

    this.MyGrid.ItemsSource = rates;

    So I am defining the child grid in code but how do I do it is xaml or what code do I need? all the examples show using the hierachy as I did

     

  7. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 31 Aug 2009 Link to this post

    Hi john,

    You can use HierarchyChildTemplate similar to our "First Look" demo.

    Greetings,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. john
    john avatar
    9 posts
    Member since:
    Jun 2009
Back to Top
DevCraft banner