This is a migrated thread and some comments may be shown as answers.
Changing the text of the group header
4 Answers 50 Views
This is a migrated thread and some comments may be shown as answers.
madladuk
Top achievements
Rank 2
madladuk asked on 29 Sep 2010, 11:53 AM
Hi all.

I am grouping my grid by a uniqueguid [which identifies a person] therefore when the group is grouped it shows the guid where as I want this to show the persons name. So I tried to create a data template and bind this to the field 'firstname' however it did not like this. Could you advise how I can get the group header to display bound data that is within the group?

<Grid.Resources>
           <DataTemplate x:Key="TeamName">
               <TextBlock Text="{Binding firstname}" />
           </DataTemplate>
       </Grid.Resources>

Thanks
P

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 30 Sep 2010, 07:30 AM
Hello madladuk,

I am sending you a sample, demonstrating this approach. If you need any further assistance, please let me know.

Sincerely yours,
Vanya Pavlova
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
David
Top achievements
Rank 1
answered on 29 Mar 2011, 10:34 PM
I tried pasting this code in a Silverlight User Control and it does not recognize x:Type or EventSetter.  I have tried it under I need to get to the GridViewGroupRow_Loaded event desparately.  Please help.

 

 

 

 

 

 

 

 

<Grid x:Name="LayoutRoot" Background="White">

 

 

 

 

 

 

 

 

 

 

 

 

 

   <Grid.Resources>

 

 

 

 

 

 

          <Style TargetType="{x:Type telerik:GridViewGroupRow}">

 

 

 

 

 

 

          <EventSetter Event="Loaded" Handler="GridViewGroupRow_Loaded" />

 

 

 

 

 

 

    </Style>

 

 

 

 

 

 

 

 

 

 

 

 

 

   </Grid.Resources>

 

0
Vanya Pavlova
Telerik team
answered on 30 Mar 2011, 02:30 PM
Hello David,

 
I have already replied in the following forum thread.


Greetings,
Vanya Pavlova
the Telerik team
0
Marc Roussel
Top achievements
Rank 2
answered on 02 Jul 2013, 01:19 PM

C:\Down\demo\SilverlightApplication78\SilverlightApplication78\SilverlightApplication78.csproj : error : Unable to read the project file 'SilverlightApplication78.csproj'.

C:\Down\demo\SilverlightApplication78\SilverlightApplication78\SilverlightApplication78.csproj(114,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

Asked by
madladuk
Top achievements
Rank 2
Answers by
Vanya Pavlova
Telerik team
David
Top achievements
Rank 1
Marc Roussel
Top achievements
Rank 2
Share this question
or