IsGroupable=false is ignored

2 posts, 0 answers
  1. André
    André avatar
    1 posts
    Member since:
    May 2011

    Posted 18 Apr 2012 Link to this post

    Hi,

    I am using the example I found here to dinamically insert values into RadGridView. However, this example does not allow controling the properties of the generated columns like "IsFilterable" or "IsGroupable".
    To implement this functionality, I modified the RadGridView to allow the indication of Column Definitions.

    When the ColumnDefinitions property is changed, the following code is executed:
    static void ColumnDefinitionsChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
            {
                var gridView = sender as i9rGridView;
     
                gridView.Columns.Clear();
     
                var columnDefinitions = e.NewValue as ObservableCollection<IAttributeDefinition>;
                if (columnDefinitions != null && columnDefinitions.Count > 0)
                {
                    gridView.AutoGenerateColumns = false;
                    foreach (var columnDefinition in columnDefinitions)
                    {
                        gridView.Columns.Add(new GridViewDataColumn() { HeaderCellStyle = Application.Current.Resources["GridViewHeaderCellStyle"] as Style, UniqueName = columnDefinition.Code, Header = columnDefinition.Text, DataType = columnDefinition.DataType, IsReadOnly = columnDefinition.AccessLevel != AccessLevel.EDITABLE ? true : false, IsVisible = columnDefinition.AccessLevel != AccessLevel.INVISIBLE ? true : false, IsGroupable = false });
                    }
                }
            }

    All the properties work like I want but "IsGroupable = false" is ignored and all the columns allow grouping.

    How can I solve this issue?

  2. Chetan
    Chetan avatar
    26 posts
    Member since:
    Oct 2012

    Posted 31 Oct 2013 Link to this post

    Hi André,

    Have you got solution?

    I am having same problem with latest build
    also
    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" IsGroupable="False">
    does  not work as given in
    http://www.telerik.com/community/forums/silverlight/gridview/disable-groupby-option-in-gridview.aspx
    please help
  3. DevCraft banner
Back to Top