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

SelectColumn with group

9 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bartosz
Top achievements
Rank 1
Bartosz asked on 03 Oct 2011, 11:04 AM
How can I display checkbox on group header using SelectColumn?

I would like to select all rows within group with one checkbox.

9 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 04 Oct 2011, 01:43 PM
I need to be able to do the same, any help much appreciated.

I have modified a copy of the Control Template for GridViewGroupRow extracted via Blend, but I haven't been able to figure out how I identify the rows in the group and select the individual checkboxes.
0
Bartosz
Top achievements
Rank 1
answered on 04 Oct 2011, 02:09 PM
I've done this by adding checkbox to GroupRow style and using converter which is setting property on my viewmodel. I will try to create sample and submit it to code library.
0
Vanya Pavlova
Telerik team
answered on 04 Oct 2011, 02:23 PM
Hello Mike and Bartoz,

 


Bartoz we would be grateful if you submit your application as Code Libary and share your solution with the community. Furthermore you may also use the approach demonstrated in the following forum thread "Select/unselect all options on group header". I believe that the code is applicable to WPF as well. 
Feel free to change it in the way you need based on your personal requirements! 




Best wishes,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Grégoire
Top achievements
Rank 1
answered on 05 Mar 2012, 03:40 PM
Hi,

I am having trouble using the sample code in my WPF application.
I added a reference to System.Windows.Interactivity.dll in my projects but when i try to set a style in a ResourceDictionnary the <i:Interaction.Behaviors> is never recognized. It Seems like Interaction doesn't exist in the assembly. What am I missing?

One last thing, I don't use Expression Blend !

Thanks,

Greg
0
Vlad
Telerik team
answered on 05 Mar 2012, 03:44 PM
Hello,

 Generally System.Windows.Interactivity.dll is part of Blend SDK - you need to have Blend if you want this dll.

All the best,

Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Grégoire
Top achievements
Rank 1
answered on 05 Mar 2012, 03:52 PM
Thank you for the answer,

Why do I need expression blend to add an assembly to a csproj and a xaml? Does expression blend do something more than adding a namespace to my xaml with a reference to the "System.Windows.Interactivity.dll"?

Best Wishes,

Greg
0
Vlad
Telerik team
answered on 05 Mar 2012, 03:55 PM
Hi Greg,

 Expression Blend is natural part of the platform (WPF) and actually you cannot perform any serious styling without Blend. There are other many useful stuff part of the Blend assemblies and in this case we've used built-in attached behaviors. If you do not want to use Blend  attached behaviors you can write your own custom.

Kind regards,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Grégoire
Top achievements
Rank 1
answered on 05 Mar 2012, 03:59 PM
Thank you,

I could make it work. Visual studio still declare that one line is Wrong(underline with a blue zig zag) but it works.
0
Mike
Top achievements
Rank 1
answered on 05 Mar 2012, 04:03 PM
Greg

I believe it is basically a licensing issue, I may be wrong.  You are not supposed to distribute the Blend assemblies unless you have relevant licenses.  Once installed you can reference the assemblies from anywhere and indeed we copy them to our source control repository so that they are available for Team City for automated builds without installing Blend on the build server, but we have Blend installed on developer workstations with appropriate licenses.

Mike
Tags
GridView
Asked by
Bartosz
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Bartosz
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Grégoire
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or