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

GridView GroupHeader - Cannot regroup a default Header defined through GroupDescriptor

4 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
anoop c
Top achievements
Rank 1
anoop c asked on 30 Apr 2010, 01:34 PM
Hello,

  I have a default group descriptor ColumnA in my gridview. This appears automatically grouped when I load the page. Now if I click on close to remove this group, I am not able to reattach this field again to the group header pane.

All other fields are draggable but when I drag this field it won't allow me to drop in group header pane.

Is this by design? or a bug?

I want the default group to be there but let the user remove and regroup it at will later.

Any quick help is appreciated.

Thanks
Anoop

4 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 30 Apr 2010, 03:02 PM
Hello anoop c,

We tried to reproduce your problem but without success. Could you please specify Telerik's controls version and more details about your scenario? Thank you in advance.

Sincerely yours,
Yordanka
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
anoop c
Top achievements
Rank 1
answered on 30 Apr 2010, 03:18 PM
Hello Team,

 I am using gridview from Telerik Silverlight controls version 2009.3.1103.1030.

I figured out the problem. I think I missed telling you the important part. I am using a celltemplate for the grouped column.  I have not given the uniquename for the column because I was using the celltemplate. 

Thanks a lot for the support. 

Btw, I want to automatically remove the colum from the grid when it is being grouped. And it should reappear back when the grouping is removed. Any shortcuts?

Thanks
Anoop
 
0
Vlad
Telerik team
answered on 03 May 2010, 07:27 AM
Hello,

You can you Grouping or Grouped event to set desired column IsVisible.

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
anoop c
Top achievements
Rank 1
answered on 03 May 2010, 07:35 AM
Thanks VLad for response.  But I am using ViewModel and not code behind so how do I use those event event?
I need some property in my viewmodel to bind to the visibility of the coloum but then how will this property in viewmodel updated?
Do I need to use an extension here? 

Btw, I am just bumping again into the same old problem which you solved.  I was able to change to the viewmodel in the Grouping Header to a different one by using  DataContext and ElementName="gridView1" approach you mentioned. Now I need to do the same inside the celltemplate of a column. The same approach is not working there. It is by default having the viewmodel defined in the ItemSource property but I want the parent viewmodel. Tried refering to the gridview datacontext but it is returning Null.
I am afraid it is not supported for columns as per silverlight 3.0 design :-(.

Thanks
Anoop
Tags
GridView
Asked by
anoop c
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
anoop c
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or