No groupable column doesn't work?

7 posts, 0 answers
  1. Larry
    Larry avatar
    12 posts
    Member since:
    Dec 2009

    Posted 18 Oct 2012 Link to this post

    It seems if I have a column with IsGroupable set to false, I can still drag and drop it to the group panel and grouping still works.

    I know this can be workaround by handling and canceling the Grouping event, but are you guys planning a fix for this?

    Thanks
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 19 Oct 2012 Link to this post

    Hello,

     I'm unable to reproduce such issue in this demo:
    http://demos.telerik.com/silverlight/#GridView/Columns

    All the best,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Larry
    Larry avatar
    12 posts
    Member since:
    Dec 2009

    Posted 22 Oct 2012 Link to this post

    My mistake, Apparently it only breaks when data source is dynamic objects. Here is an example:

    xaml

     

     

     

     

     

    <telerik:RadGridView ItemsSource="{Binding Data}" AutoGenerateColumns="False"
                                 MinHeight="386" SelectionMode="Extended" IsReadOnly="True" Name="DataGrid">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn x:Name="NameColumn" DataMemberBinding="{Binding Name}" IsGroupable="False" Header="Name"/>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding LastUpdate}" Header="Last Update"/>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>

     

     

     

    DataContext:

    ObservableCollection<DummyDataItem> _data;
            ObservableCollection<DummyDataItem> Data
            {
                get
                {
                    if(_data== null)
                    {
                        _data= new ObservableCollection<DummyDataItem>(); 
                        _data.Add(new DummyDataItem());
                    }
                    return _data;
                }
            }

    DummyDataItem.cs:

    class DummyDataItem : DynamicObject
        {
            public override bool TryGetMember(GetMemberBinder binder, out object result)
            {
                result = "test";
                return true;
            }
        }
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 Oct 2012 Link to this post

    Hi,

     Are you using our latest official version (Q3 2012)?

    All the best,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Larry
    Larry avatar
    12 posts
    Member since:
    Dec 2009

    Posted 23 Oct 2012 Link to this post

    Nope I used q2 sp2. It's going to take a while for us to migration to q3
  6. Larry
    Larry avatar
    12 posts
    Member since:
    Dec 2009

    Posted 13 Feb 2013 Link to this post

    We are at 2012.3, and the problem is still there.
  7. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 14 Feb 2013 Link to this post

    Hello,

     The grid on our demo is also bound to dynamic objects however you can group normally. 

    Greetings,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top