This is a migrated thread and some comments may be shown as answers.

No groupable column doesn't work?

6 Answers 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Larry
Top achievements
Rank 1
Larry asked on 18 Oct 2012, 06:41 PM
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

6 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 Oct 2012, 06:07 AM
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.

0
Larry
Top achievements
Rank 1
answered on 22 Oct 2012, 06:31 PM

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;
        }
    }
0
Vlad
Telerik team
answered on 23 Oct 2012, 06:05 AM
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.

0
Larry
Top achievements
Rank 1
answered on 23 Oct 2012, 01:45 PM
Nope I used q2 sp2. It's going to take a while for us to migration to q3
0
Larry
Top achievements
Rank 1
answered on 13 Feb 2013, 07:12 PM
We are at 2012.3, and the problem is still there.
0
Vlad
Telerik team
answered on 14 Feb 2013, 07:24 AM
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.

Tags
GridView
Asked by
Larry
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Larry
Top achievements
Rank 1
Share this question
or