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

How to put Checkbox/Content in Group Desciptions

4 Answers 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Casey
Top achievements
Rank 1
Casey asked on 30 Jun 2009, 09:51 PM
I have checkboxes as a column in my Datagrid.

When I do a group by I need to add a CheckBox that would select the grouped checkboxes...

I can't get it to show up... I've added this code in teh datagrid.Grouped event handler

I've tried two different code blocks.

This one results in an empty GroupByBox (well it has the sort arrow and the close but no DisplayContent

TextBlock tb = new TextBlock();

 

 

 

string sGroup = dataGrid.GroupDescriptions[0].DisplayContent.ToString();

 

tb.Text = sGroup +

 

"AA";

 

dataGrid.GroupDescriptions[0].DisplayContent = tb;

 


This one keeps the ColumnName and adds the CheckBox.. but it adds the string representation of the checkbox... so it looks like this...

"Column A System.Window.Controls.Checkbox Content:IsChecked:False"

CheckBox cb =

new CheckBox();

 

 

 

string sGroup = dataGrid.GroupDescriptions[1].DisplayContent.ToString();

 

dataGrid.GroupDescriptions[1].DisplayContent = sGroup + cb; ;

 

 

 

 

 

 

4 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 03 Jul 2009, 09:34 AM
Hello Casey,

Unfortunately in the current version of the RadGridView such customization of the cell in the GroupPanel is not easy. I already took care for this one to be scheduled for improvement by the team. In the next version of the RadGridView ( maybe for a service pack ) this will be available as an API to allow an easy access to the templates within the GroupPanel. Please if you find the lack of this feature a showstopper for your project , just let me know so I can push it with a higher priority . We have the practice of preparing an internal Friday builds which are available for download in the client.net accounts. So if needed I'll do my best for the fix to be available as soon as possible to you.
Please excuse us for the inconvenience caused .

Sincerely yours,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
anoop c
Top achievements
Rank 1
answered on 14 Jun 2010, 09:46 AM
Pavlov,

  Has this feature enabled in the latest silverlight 3.0 release? 

Thanks
Anoop
0
Ilyasse Setti
Top achievements
Rank 1
answered on 19 Jul 2010, 03:08 PM
Is this feature, now available.
I also want to set a Checkbox into the header of the RadGridView. But I don't know if there is alreay a property for that...

Thank you.
0
Pavel Pavlov
Telerik team
answered on 19 Jul 2010, 03:14 PM
Hi,

Yes, with the latest improvements to RadGridView , it is now easier to achieve.

To customize the appearance of the cells in the group panel  you may use the GroupPanelItemStyle property.  You can set a control template, targeting the GroupPanelItem.

Let me know if you find any  specific troubles implementing this.

Kind regards,
Pavel Pavlov
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
Tags
GridView
Asked by
Casey
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
anoop c
Top achievements
Rank 1
Ilyasse Setti
Top achievements
Rank 1
Share this question
or