HI
I have two questions; First is there a way to include a checkbox in the groupbyitemtemplate? I've got the the template working that includes the value and the count, but I am looking for a way to unselect the group so that the coorsponding display (points on a map) can be turned "off" Second question is if there is a way to set the groupbyitemtemplate for all columns or does it have to set for each column independantly?
Thanks for the help
Gregg
Hi Gregg,
Just setting Tag="{Binding}" should do the trick.
Hope that helps,
Hi Steve
One last question (I hope). How do I bind the GroupByDataContext to the tag? Can't quite seem to get the syntax right.
Thanks, Gregg
Thanks again for your help. I believe I have found the error of my ways and was able to use the data template to handle the event.
Thanks again, Gregg
There currently isn't an event that fires when a control is attached to GroupByCell.
Out of curiosity, why do you need to add the eventhandler in code, as opposed through the data template?
-SteveZ
Again, thanks for the reply. I have a need to add in the event handler through code as opposed to XAML and I can't seem to figure it out. Here is the significant part of the XAML:
<igDataGrid:XamWebGrid x:Name="EventsGrid" Foreground="DarkBlue" FontSize="10" Background="WhiteSmoke" VerticalAlignment="Top" HorizontalAlignment="Left" Opacity="0.85" >
<igDataGrid:XamWebGrid.Columns>
<igDataGrid:TextColumn Key="event_id" HeaderText="Event ID"/> <igDataGrid:TextColumn Key="Event_Type" HeaderText="Category" x:Name="EventColumn"> <igDataGrid:TextColumn.GroupByItemTemplate > <DataTemplate x:Name="MyGroupTemplate"> <StackPanel Orientation="Horizontal"> <CheckBox x:Name="GroupCheck" IsChecked="True" /> <TextBlock Text="{Binding Value}"></TextBlock> <TextBlock Text=" (" /> <TextBlock Text="{Binding Count}"></TextBlock> <TextBlock Text=")" /> </StackPanel> </DataTemplate> </igDataGrid:TextColumn.GroupByItemTemplate> </igDataGrid:TextColumn>
</igDataGrid:XamWebGrid.Columns> </igDataGrid:XamWebGrid>
I need an addhandler statement like this one but I can't quite figure out how to reference the checkbox in the GroupByItemTemplate.
AddHandler DataWindow.EventsGrid.SelectedRowsCollectionChanged, AddressOf EventSelected
I appreciate the help. Gregg